Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
ac8b6e68
Unverified
Commit
ac8b6e68
authored
Feb 10, 2020
by
Steven Allen
Committed by
GitHub
Feb 10, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #148 from ipfs/test/capital
feat: add upper-case keys at a known prefix
parents
b72ac7e0
b026bf40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
test/basic_tests.go
test/basic_tests.go
+11
-0
No files found.
test/basic_tests.go
View file @
ac8b6e68
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment