Skip to content
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

tool: fix testdata generator #2888

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tool/testdata/mixed/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
// Write some point and range keys.
ks := testkeys.Alpha(1)
b := db.NewBatch()
for i := 0; i < ks.Count(); i++ {
for i := int64(0); i < ks.Count(); i++ {

Check failure on line 81 in tool/testdata/mixed/main.go

View workflow job for this annotation

GitHub Actions / code-cover-gen

invalid operation: i < ks.Count() (mismatched types int and int64)
writePoint(b, testkeys.KeyAt(ks, i, 1))

Check failure on line 82 in tool/testdata/mixed/main.go

View workflow job for this annotation

GitHub Actions / code-cover-gen

cannot use i (variable of type int) as int64 value in argument to testkeys.KeyAt
}
start, end := testkeys.Key(ks, 0), testkeys.Key(ks, ks.Count()-1)
writeRangeKeySet(b, start, end, testkeys.Suffix(1)) // SET [a, z)@1
Expand Down
Loading