Improve fs package and doc in prep to officially go public

This commit is contained in:
Jeffrey Regan
2019-10-01 10:38:00 -07:00
parent 07634ef098
commit 9a94bcb854
22 changed files with 256 additions and 364 deletions

View File

@@ -24,7 +24,7 @@ import (
)
func TestRestrictionNone(t *testing.T) {
fSys := fs.MakeFakeFS()
fSys := fs.MakeFsInMemory()
root := fs.ConfirmedDir("irrelevant")
path := "whatever"
p, err := RestrictionNone(fSys, root, path)
@@ -37,7 +37,7 @@ func TestRestrictionNone(t *testing.T) {
}
func TestRestrictionRootOnly(t *testing.T) {
fSys := fs.MakeFakeFS()
fSys := fs.MakeFsInMemory()
root := fs.ConfirmedDir("/tmp/foo")
path := "/tmp/foo/whatever/beans"