Commit 4344afda authored by Aaron Jacobs's avatar Aaron Jacobs

HelloFSTest.Stat_Hello

parent 7ed279d7
......@@ -137,10 +137,21 @@ func (t *HelloFSTest) ReadDir_NonExistent() {
ExpectThat(err, Error(HasSubstr("no such file")))
}
func (t *HelloFSTest) Stat_Hello() {
func (t *HelloFSTest) Stat_Root() {
AssertTrue(false, "TODO")
}
func (t *HelloFSTest) Stat_Hello() {
fi, err := os.Stat(path.Join(t.mfs.Dir(), "hello"))
AssertEq(nil, err)
ExpectEq("hello", fi.Name())
ExpectEq(len("Hello, world!"), fi.Size())
ExpectEq(0400, fi.Mode())
ExpectEq(0, t.clock.Now().Sub(fi.ModTime()), "ModTime: %v", fi.ModTime())
ExpectFalse(fi.IsDir())
}
func (t *HelloFSTest) Stat_Dir() {
AssertTrue(false, "TODO")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment