-
Notifications
You must be signed in to change notification settings - Fork 65
Fix HasOverlap might return the wrong result #335
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
Conversation
|
@hll1213181368 Could you please add a test case for this issue? |
|
@git-hulk I have add a test case for this issue |
|
@hll1213181368 Thanks for your fix. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #335 +/- ##
============================================
+ Coverage 43.38% 47.16% +3.77%
============================================
Files 37 45 +8
Lines 2971 4425 +1454
============================================
+ Hits 1289 2087 +798
- Misses 1544 2129 +585
- Partials 138 209 +71
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@hll1213181368 I didn't find any new cases in this PR. Did I miss anything? |
|
@git-hulk I directly modified the slot_test.go of TestSlotRange_HasOverlap function. The previous function in testcase 1 not pass failed. |
Sorry, I didn't get your point entirely. Do you mean the first test case should be failed but now is passed? |
|
@git-hulk this is my modify test case. func TestSlotRange_HasOverlap(t *testing.T) { ---------------------------------------------------old function result------ FAIL ---------------------------------------------------new function result------ |
Fix HasOverlap function