forked from mirror/pkger
sword swallowers
This commit is contained in:
parent
7ba3bfb8d2
commit
59544d9d06
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue