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
25c8ad3e
Commit
25c8ad3e
authored
Oct 22, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6f6fa406
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+8
-8
No files found.
wcfs/wcfs_test.py
View file @
25c8ad3e
...
...
@@ -1217,7 +1217,7 @@ def test_wcfs_basic():
f
.
assertData
([
''
,
''
,
'c1'
],
mtime
=
t
.
head
)
# >>> (@at2) commit again -> we can see both latest and snapshotted states
# NOTE blocks
d
(4) and f(5) will be accessed only in the end
# NOTE blocks
e
(4) and f(5) will be accessed only in the end
at2
=
t
.
commit
(
zf
,
{
2
:
'c2'
,
3
:
'd2'
,
5
:
'f2'
})
# f @head
...
...
@@ -1233,19 +1233,19 @@ def test_wcfs_basic():
# >>> (@at3) commit again without changing zf size
f2
=
t
.
open
(
zf
,
at
=
at2
)
at3
=
t
.
commit
(
zf
,
{
2
:
'c3'
,
5
:
'f3'
})
# FIXME + a3 after δbtree works (hole -> zblk
)
at3
=
t
.
commit
(
zf
,
{
0
:
'a3'
,
2
:
'c3'
,
5
:
'f3'
}
)
f
.
assertCache
([
1
,
1
,
0
,
1
,
0
,
0
])
f
.
assertCache
([
0
,
1
,
0
,
1
,
0
,
0
])
# f @head is opened again -> cache must not be lost
f_
=
t
.
open
(
zf
)
f_
.
assertCache
([
1
,
1
,
0
,
1
,
0
,
0
])
f_
.
assertCache
([
0
,
1
,
0
,
1
,
0
,
0
])
f_
.
close
()
f
.
assertCache
([
1
,
1
,
0
,
1
,
0
,
0
])
f
.
assertCache
([
0
,
1
,
0
,
1
,
0
,
0
])
# f @head
f
.
assertCache
([
1
,
1
,
0
,
1
,
0
,
0
])
f
.
assertData
([
''
,
''
,
'c3'
,
'd2'
,
'x'
,
'x'
],
mtime
=
t
.
head
)
f
.
assertCache
([
0
,
1
,
0
,
1
,
0
,
0
])
f
.
assertData
([
'
a3
'
,
''
,
'c3'
,
'd2'
,
'x'
,
'x'
],
mtime
=
t
.
head
)
# f @at2
# NOTE f(2) is accessed but via @at/ not head/ ; f(2) in head/zf remains unaccessed
...
...
@@ -1266,7 +1266,7 @@ def test_wcfs_basic():
assert
sum
(
f
.
cached
())
>
4
*
1
/
2
# > 50%
# verify all blocks
f
.
assertData
([
''
,
''
,
'c3'
,
'd2'
,
''
,
'f3'
])
f
.
assertData
([
'
a3
'
,
''
,
'c3'
,
'd2'
,
''
,
'f3'
])
f
.
assertCache
([
1
,
1
,
1
,
1
,
1
,
1
])
...
...
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