Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
a8202f5c
Commit
a8202f5c
authored
Jul 31, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c13c3068
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
go/zodb/btree/btree_test.go
go/zodb/btree/btree_test.go
+17
-2
No files found.
go/zodb/btree/btree_test.go
View file @
a8202f5c
...
@@ -36,7 +36,7 @@ type kv struct {
...
@@ -36,7 +36,7 @@ type kv struct {
value
interface
{}
value
interface
{}
}
}
// testEntry is information about
1 Bucket or BTree (XXX) object
.
// testEntry is information about
a Bucket or a BTree
.
type
testEntry
struct
{
type
testEntry
struct
{
oid
zodb
.
Oid
oid
zodb
.
Oid
itemv
[]
kv
itemv
[]
kv
...
@@ -69,6 +69,21 @@ func TestBucket(t *testing.T) {
...
@@ -69,6 +69,21 @@ func TestBucket(t *testing.T) {
t
.
Fatalf
(
"%s: got %T; want Bucket"
,
tt
.
oid
,
xobj
)
t
.
Fatalf
(
"%s: got %T; want Bucket"
,
tt
.
oid
,
xobj
)
}
}
_
=
obj
for
_
,
kv
:=
range
tt
.
itemv
{
value
,
ok
,
err
:=
obj
.
Get
(
ctx
,
kv
.
key
)
if
err
!=
nil
{
t
.
Error
(
err
)
continue
}
if
!
ok
{
t
.
Errorf
(
"get %v -> ø; want %v"
,
kv
.
key
,
kv
.
value
)
continue
}
if
value
!=
kv
.
value
{
t
.
Errorf
(
"get %v -> %v; want %v"
,
kv
.
key
,
value
,
kv
.
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