Replace os.Stat with IsDir, simplifying FS abstraction.

This commit is contained in:
Jeffrey Regan
2018-07-18 11:33:30 -07:00
parent 8fda0f87ab
commit 9432671887
15 changed files with 83 additions and 69 deletions

View File

@@ -18,7 +18,6 @@ package app
import (
"encoding/base64"
"os"
"reflect"
"testing"
@@ -264,7 +263,7 @@ func makeLoader2(t *testing.T) loader.Loader {
if err != nil {
t.Fatalf("Failed to setup fake loader.")
}
err = loader.AddDirectory("/testpath/base", os.ModeDir)
err = loader.AddDirectory("/testpath/base")
if err != nil {
t.Fatalf("Failed to setup fake loader.")
}