-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
testifylint: enable float-compare #5989
testifylint: enable float-compare #5989
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5989 +/- ##
==========================================
- Coverage 96.82% 96.81% -0.02%
==========================================
Files 345 345
Lines 16523 16523
==========================================
- Hits 15998 15996 -2
- Misses 339 340 +1
- Partials 186 187 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
d5c2cfe
to
57d95f3
Compare
@@ -258,10 +258,10 @@ func TestMissingServiceSamplingStrategyTypes(t *testing.T) { | |||
|
|||
require.NotNil(t, s.OperationSampling) | |||
os := s.OperationSampling | |||
assert.EqualValues(t, defaultSamplingProbability, os.DefaultSamplingProbability) | |||
assert.InEpsilon(t, defaultSamplingProbability, os.DefaultSamplingProbability, 0.0001) |
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.
What's the difference vs inDelta?
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.
There interfaces are quite similar I’m not sure but in my experience they both work the same way except that InEpsilon doesn’t work for a 0 expected value.
I would say that InEpsilon is for very small numbers but I don’t see anything prevising what a small number is.
I’ll keep InDelta instead
4006fba
to
cd04c53
Compare
Signed-off-by: Matthieu MOREL <[email protected]>
cd04c53
to
47f5ab3
Compare
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test