mirror of https://github.com/markbates/pkger.git
You were a spoilt child then with a record to plug
This commit is contained in:
parent
952d962d54
commit
93d467fbde
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue