You were a spoilt child then with a record to plug

This commit is contained in:
Mark Bates 2019-11-01 16:04:37 -04:00
parent 952d962d54
commit 93d467fbde
1 changed files with 7 additions and 2 deletions

View File

@ -61,10 +61,15 @@ func CmpFileInfo(t *testing.T, a os.FileInfo, b os.FileInfo) {
r := require.New(t) r := require.New(t)
r.Equal(a.IsDir(), b.IsDir()) r.Equal(a.IsDir(), b.IsDir())
r.Equal(a.Mode().Perm(), b.Mode().Perm())
r.Equal(a.Name(), b.Name()) r.Equal(a.Name(), b.Name())
// r.Equal(a.Size(), b.Size())
r.NotZero(b.ModTime()) r.NotZero(b.ModTime())
if a.IsDir() {
r.True(b.Mode().IsDir(), b.Mode().String())
return
}
r.True(b.Mode().IsRegular(), b.Mode().String())
} }
func cmpHereInfo(t *testing.T, a here.Info, b here.Info) { func cmpHereInfo(t *testing.T, a here.Info, b here.Info) {