Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
9b929572
Commit
9b929572
authored
Apr 13, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3233fc16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wcfs/zblk_test.go
wcfs/zblk_test.go
+4
-4
No files found.
wcfs/zblk_test.go
View file @
9b929572
...
...
@@ -82,8 +82,9 @@ func TestZBlk(t *testing.T) {
z0Data
,
z0Rev
,
err
:=
z0
.
loadBlkData
(
ctx
);
X
(
err
)
assert
.
Equal
(
z0Data
,
brange32
(
z0_len
),
"ZBlk0 data wrong"
)
assert
.
Equal
(
z0Rev
,
z0_rev
,
"ZBlk0 rev wrong"
)
z0DataOK
:=
brange32
(
z0_len
)
assert
.
Equal
(
z0Data
,
z0DataOK
,
"ZBlk0 data wrong"
)
assert
.
Equal
(
z0Rev
,
z0_rev
,
"ZBlk0 rev wrong"
)
z1Data
,
z1Rev
,
err
:=
z1
.
loadBlkData
(
ctx
);
X
(
err
)
z1DataOK
:=
make
([]
byte
,
zf_blksize
)
// zeros
...
...
@@ -112,12 +113,11 @@ func TestZBlk(t *testing.T) {
size
,
_
,
err
:=
zf
.
Size
(
ctx
);
X
(
err
)
assert
.
Equal
(
size
,
int64
(
zf_size
),
"ZBigFile size wrong"
)
// XXX check zf.blktab.MaxKey ?
// XXX check zf.LoadBlk()
// XXX PyGetState vs PySetState
}
// TODO verify PyGetState vs PySetState
// brange32 returns bytes with big-endian uint32 seqence filling them.
// returned bytes has len == size.
...
...
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