Skip to content

Commit

Permalink
feat: add upper-case keys at a known prefix
Browse files Browse the repository at this point in the history
I need this for testing flatfs.
  • Loading branch information
Stebalien committed Feb 11, 2020
1 parent b72ac7e commit b026bf4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/basic_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,17 @@ func subtestQuery(t *testing.T, ds dstore.Datastore, q dsq.Query, count int) {
})
}

for i := 0; i < count; i++ {
s := fmt.Sprintf("/capital/%dKEY%d", i, i)
key := dstore.NewKey(s).String()
value := randValue()
input = append(input, dsq.Entry{
Key: key,
Size: len(value),
Value: value,
})
}

t.Logf("putting %d values", count)
for i, e := range input {
err := ds.Put(dstore.RawKey(e.Key), e.Value)
Expand Down

0 comments on commit b026bf4

Please sign in to comment.