Enhance test harness.

This commit is contained in:
monopole
2021-04-11 18:00:50 -07:00
parent 5100568b0c
commit 3af1ae4159
4 changed files with 57 additions and 22 deletions

View File

@@ -319,7 +319,6 @@ func (fl *fileLoader) Load(path string) ([]byte, error) {
}
return body, nil
}
if !filepath.IsAbs(path) {
path = fl.root.Join(path)
}

View File

@@ -54,7 +54,6 @@ func MakeFakeFs(td []testData) filesys.FileSystem {
func makeLoader() *fileLoader {
return NewFileLoaderAtRoot(MakeFakeFs(testCases))
}
func TestLoaderLoad(t *testing.T) {