Commit b026bf40 authored by Steven Allen's avatar Steven Allen

feat: add upper-case keys at a known prefix

I need this for testing flatfs.
parent b72ac7e0
...@@ -405,6 +405,17 @@ func subtestQuery(t *testing.T, ds dstore.Datastore, q dsq.Query, count int) { ...@@ -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) t.Logf("putting %d values", count)
for i, e := range input { for i, e := range input {
err := ds.Put(dstore.RawKey(e.Key), e.Value) err := ds.Put(dstore.RawKey(e.Key), e.Value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment