chore(cli): improve unittests

This commit is contained in:
bergquist
2016-02-15 18:32:36 +01:00
parent 746257710b
commit ea9ac0d2d2
4 changed files with 82 additions and 46 deletions

View File

@@ -11,7 +11,7 @@ type FakeIoUtil struct {
}
func (util *FakeIoUtil) Stat(path string) (os.FileInfo, error) {
return FakeFileInfo{IsDirectory: util.FakeIsDirectory}, nil
return &FakeFileInfo{IsDirectory: util.FakeIsDirectory}, nil
}
func (util *FakeIoUtil) RemoveAll(path string) error {
@@ -30,7 +30,7 @@ type FakeFileInfo struct {
IsDirectory bool
}
func (ffi FakeFileInfo) IsDir() bool {
func (ffi *FakeFileInfo) IsDir() bool {
return ffi.IsDirectory
}