-
Notifications
You must be signed in to change notification settings - Fork 56
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
test: Allow assertion of AddSchema results #2788
test: Allow assertion of AddSchema results #2788
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #2788 +/- ##
===========================================
- Coverage 78.84% 78.79% -0.05%
===========================================
Files 315 315
Lines 23835 23835
===========================================
- Hits 18792 18780 -12
- Misses 3670 3677 +7
- Partials 1373 1378 +5
Flags with carried forward coverage won't be shown. Click here to find out more. see 15 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
1401594
to
da05e98
Compare
Will be used for asserting AddSchema results too soon. No code has changed, only moved (plus a copy/cast in getCollections).
Bit odd that this wasn't done before, not sure why
da05e98
to
1160308
Compare
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.
LGTM
|
||
if expected.Indexes != nil || len(actual.Indexes) != 0 { | ||
// Dont bother asserting this if the expected is nil and the actual is nil/empty. | ||
// This is to say each test action from having to bother declaring an empty slice (if there are no indexes) |
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.
typo: This is to save
? Same thing bellow.
## Relevant issue(s) Resolves sourcenetwork#2766 ## Description Allows assertion of AddSchema results.
Relevant issue(s)
Resolves #2766
Description
Allows assertion of AddSchema results.
PR Does not attempt to spread it's usage (out of scope).