-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
New for loops and some assert/require #15194
Conversation
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Signed-off-by: Andrew Mason <andrew@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15194 +/- ##
==========================================
+ Coverage 67.28% 67.45% +0.17%
==========================================
Files 1559 1560 +1
Lines 192056 193177 +1121
==========================================
+ Hits 129219 130305 +1086
- Misses 62837 62872 +35 ☔ View full report in Codecov by Sentry. |
@@ -53,7 +53,7 @@ func main() { | |||
|
|||
// Insert some messages on random pages. | |||
fmt.Println("Inserting into primary...") | |||
for i := 0; i < 3; i++ { | |||
for range 3 { |
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.
that's really cool
note that coverage has decreased slightly because i also deleted some unused (and untested) code |
Signed-off-by: Andrew Mason <andrew@planetscale.com>
812ace1
to
d2703e3
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.
Nice!
Description
This updates a small portion of the codebase, primarily to use the new range syntax, but then made some
assert/require
changes in files I happened to already be editing.Related Issue(s)
#15193
#15182
Checklist
Deployment Notes