sword swallowers

This commit is contained in:
Mark Bates 2019-10-22 10:01:19 -04:00
parent 7ba3bfb8d2
commit 59544d9d06
1 changed files with 1 additions and 26 deletions

View File

@ -56,19 +56,7 @@ func Test_Pkger_Embedding(t *testing.T) {
}) })
r.NoError(err) r.NoError(err)
var act []string act := []string{}
err = base.Walk("/", func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
act = append(act, path)
return nil
})
r.NoError(err)
r.Equal(app.Paths.Root, act)
act = []string{}
err = base.Walk("/public", func(path string, info os.FileInfo, err error) error { err = base.Walk("/public", func(path string, info os.FileInfo, err error) error {
if err != nil { if err != nil {
return err return err
@ -89,19 +77,6 @@ func Test_Pkger_Embedding(t *testing.T) {
err = pkg.UnmarshalEmbed(bb.Bytes()) err = pkg.UnmarshalEmbed(bb.Bytes())
r.NoError(err) r.NoError(err)
act = []string{}
err = pkg.Walk("/", func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
act = append(act, path)
return nil
})
r.NoError(err)
r.Equal(app.Paths.Public, act)
act = []string{} act = []string{}
err = pkg.Walk("/public", func(path string, info os.FileInfo, err error) error { err = pkg.Walk("/public", func(path string, info os.FileInfo, err error) error {
if err != nil { if err != nil {