-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve code coverage: BaseExporter
, BaseProcessor
, PooledList
, SamplingResult
, SimpleExportProcessor
, TracerProviderExtensions
, MathHelper
, and WildcardHelper
#3476
improve code coverage: BaseExporter
, BaseProcessor
, PooledList
, SamplingResult
, SimpleExportProcessor
, TracerProviderExtensions
, MathHelper
, and WildcardHelper
#3476
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3476 +/- ##
==========================================
+ Coverage 86.37% 87.26% +0.88%
==========================================
Files 275 275
Lines 9959 9948 -11
==========================================
+ Hits 8602 8681 +79
+ Misses 1357 1267 -90
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove bloated code, e.g. ExceptionTestExporter.
@reyang I made changes to |
BaseExporter
, BaseProcessor
, PooledList
, SamplingResult
, SimpleExportProcessor
, and WildcardHelper
BaseExporter
, BaseProcessor
, PooledList
, SamplingResult
, SimpleExportProcessor
, TracerProviderExtensions
, and WildcardHelper
BaseExporter
, BaseProcessor
, PooledList
, SamplingResult
, SimpleExportProcessor
, TracerProviderExtensions
, and WildcardHelper
BaseExporter
, BaseProcessor
, PooledList
, SamplingResult
, SimpleExportProcessor
, TracerProviderExtensions
, MathHelper
, and WildcardHelper
// Verify that the Processor catches and suppresses the exception. | ||
testSimpleExportProcessor.OnEnd(new object()); | ||
|
||
// verify Exporter OnExport wall called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// verify Exporter OnExport wall called. | |
// verify Exporter OnExport was called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
public void Verify_ForceFlush_HandlesException() | ||
{ | ||
// By default, ForceFlush should return true. | ||
var testExporter = new DelegatingExporter<object>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually testing the "default" return value of BaseExporter<T>.ForceFlush()
? This would test what DelegatingExporter.OnForceFlushFunc
returns.
{ | ||
// By default, ForceFlush should return true. | ||
var testExporter = new DelegatingExporter<object>(); | ||
Assert.True(testExporter.Shutdown()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same concern as the previous comment.
Contributes to #3353
As of today:
Changes
DelegatingExportor
to enable more test scenarios.DelegatingProcessor
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes