Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
b1ad507c
Commit
b1ad507c
authored
Mar 17, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NoCachingTest.StatRenumberMtimeStat
parent
1aab442f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
samples/cachingfs/caching_fs_test.go
samples/cachingfs/caching_fs_test.go
+16
-1
No files found.
samples/cachingfs/caching_fs_test.go
View file @
b1ad507c
...
...
@@ -254,5 +254,20 @@ func (t *NoCachingTest) StatMtimeStat() {
}
func
(
t
*
NoCachingTest
)
StatRenumberMtimeStat
()
{
AssertTrue
(
false
,
"TODO"
)
newMtime
:=
t
.
initialMtime
.
Add
(
time
.
Second
)
t
.
statAll
()
t
.
fs
.
RenumberInodes
()
t
.
fs
.
SetMtime
(
newMtime
)
fooAfter
,
dirAfter
,
barAfter
:=
t
.
statAll
()
// We should see the new inode IDs and mtimes, because nothing should have
// been cached.
ExpectEq
(
t
.
fs
.
FooID
(),
getInodeID
(
fooAfter
))
ExpectEq
(
t
.
fs
.
DirID
(),
getInodeID
(
dirAfter
))
ExpectEq
(
t
.
fs
.
BarID
(),
getInodeID
(
barAfter
))
ExpectThat
(
fooAfter
.
ModTime
(),
timeutil
.
TimeEq
(
newMtime
))
ExpectThat
(
dirAfter
.
ModTime
(),
timeutil
.
TimeEq
(
newMtime
))
ExpectThat
(
barAfter
.
ModTime
(),
timeutil
.
TimeEq
(
newMtime
))
}
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