From 59544d9d06066fa5f6d4909afcf5e8f8abc749b4 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Tue, 22 Oct 2019 10:01:19 -0400 Subject: [PATCH] sword swallowers --- pkging/mem/embed_test.go | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/pkging/mem/embed_test.go b/pkging/mem/embed_test.go index f3fa114..ba47b40 100644 --- a/pkging/mem/embed_test.go +++ b/pkging/mem/embed_test.go @@ -56,19 +56,7 @@ func Test_Pkger_Embedding(t *testing.T) { }) r.NoError(err) - var 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{} + act := []string{} err = base.Walk("/public", func(path string, info os.FileInfo, err error) error { if err != nil { return err @@ -89,19 +77,6 @@ func Test_Pkger_Embedding(t *testing.T) { err = pkg.UnmarshalEmbed(bb.Bytes()) 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{} err = pkg.Walk("/public", func(path string, info os.FileInfo, err error) error { if err != nil {