Commit f1914f74 authored by Aaron Jacobs's avatar Aaron Jacobs

Finished writing BasicsTest.

parent dc5f8ae4
......@@ -141,11 +141,22 @@ func (t *BasicsTest) StatFoo() {
}
func (t *BasicsTest) StatDir() {
AssertTrue(false, "TODO")
fi, err := os.Stat(path.Join(t.dir, "dir"))
AssertEq(nil, err)
ExpectEq("dir", fi.Name())
ExpectEq(os.ModeDir|0777, fi.Mode())
ExpectTrue(fi.IsDir())
}
func (t *BasicsTest) StatBar() {
AssertTrue(false, "TODO")
fi, err := os.Stat(path.Join(t.dir, "dir/bar"))
AssertEq(nil, err)
ExpectEq("bar", fi.Name())
ExpectEq(cachingfs.BarSize, fi.Size())
ExpectEq(0777, fi.Mode())
ExpectFalse(fi.IsDir())
}
////////////////////////////////////////////////////////////////////////
......
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