HelloFSTest.ReadDir_NonExistent

geesefs-0-30-9
Aaron Jacobs 2015-02-27 14:44:03 +11:00
parent 39e09d6bdb
commit 7ed279d75b
1 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import (
"github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/samples"
"github.com/jacobsa/gcsfuse/timeutil"
. "github.com/jacobsa/oglematchers"
. "github.com/jacobsa/ogletest"
"golang.org/x/net/context"
)
@ -130,7 +131,10 @@ func (t *HelloFSTest) ReadDir_Dir() {
}
func (t *HelloFSTest) ReadDir_NonExistent() {
AssertTrue(false, "TODO")
_, err := ioutil.ReadDir(path.Join(t.mfs.Dir(), "foobar"))
AssertNe(nil, err)
ExpectThat(err, Error(HasSubstr("no such file")))
}
func (t *HelloFSTest) Stat_Hello() {