-
Notifications
You must be signed in to change notification settings - Fork 365
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
chore(gno.land): add unit tests for sdk/vm.vmHandler #2459
base: master
Are you sure you want to change the base?
Conversation
moul
commented
Jun 28, 2024
•
edited
Loading
edited
Signed-off-by: moul <[email protected]>
Signed-off-by: moul <[email protected]>
Signed-off-by: moul <[email protected]>
Signed-off-by: moul <[email protected]>
Signed-off-by: moul <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2459 +/- ##
==========================================
+ Coverage 60.87% 61.13% +0.26%
==========================================
Files 563 564 +1
Lines 75193 76624 +1431
==========================================
+ Hits 45770 46845 +1075
- Misses 26055 26315 +260
- Partials 3368 3464 +96
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: moul <[email protected]>
Signed-off-by: moul <[email protected]>
ci is failing. didn't you fix this yesterday? |
output := fmt.Sprintf("%v", r) | ||
assert.Regexp(t, tc.expectedPanicMatch, output) | ||
} else { | ||
assert.Equal(t, "", tc.expectedPanicMatch, "should not panic") |
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.
here should be:
assert.Equal(t, tc.expectedPanicMatch, "", "should not panic")
right?
} | ||
}() | ||
res := vmHandler.Query(env.ctx, req) | ||
if tc.expectedErrorMatch == "" { |
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.
I think here should be something like:
if tc.expectedPanicMatch == "" {
if tc.expectedErrorMatch == "" {
.......
}
}
to ensure these two tests are isolated.
Signed-off-by: moul <[email protected]>
should be fixed. |