MemFSTest.ContentsOfEmptyFileSystem

geesefs-0-30-9
Aaron Jacobs 2015-03-02 14:12:02 +11:00
parent 9fb1bc6bff
commit 0c265d4161
1 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import (
"github.com/jacobsa/fuse" "github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/samples/memfs" "github.com/jacobsa/fuse/samples/memfs"
"github.com/jacobsa/gcsfuse/timeutil" "github.com/jacobsa/gcsfuse/timeutil"
. "github.com/jacobsa/oglematchers"
. "github.com/jacobsa/ogletest" . "github.com/jacobsa/ogletest"
"golang.org/x/net/context" "golang.org/x/net/context"
) )
@ -85,7 +86,10 @@ func (t *MemFSTest) TearDown() {
//////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////
func (t *MemFSTest) ContentsOfEmptyFileSystem() { func (t *MemFSTest) ContentsOfEmptyFileSystem() {
AssertTrue(false, "TODO") entries, err := ioutil.ReadDir(t.mfs.Dir())
AssertEq(nil, err)
ExpectThat(entries, ElementsAre())
} }
func (t *MemFSTest) DoesFoo() { func (t *MemFSTest) DoesFoo() {