pkger/pkging/mem/mem_test.go

20 lines
367 B
Go
Raw Normal View History

2019-10-21 17:27:04 +03:00
package mem_test
2019-09-01 00:00:24 +03:00
import (
2019-09-01 05:45:22 +03:00
"testing"
2019-09-01 00:00:24 +03:00
2019-09-12 04:29:39 +03:00
"github.com/markbates/pkger/pkging"
2019-10-30 23:39:05 +03:00
"github.com/markbates/pkger/pkging/costello"
2019-10-21 17:27:04 +03:00
"github.com/markbates/pkger/pkging/mem"
2019-09-01 00:00:24 +03:00
)
2019-09-03 18:29:28 +03:00
func Test_Pkger(t *testing.T) {
ref, err := costello.NewRef()
if err != nil {
t.Fatal(err)
}
costello.All(t, ref, func(ref *costello.Ref) (pkging.Pkger, error) {
2019-10-30 23:39:05 +03:00
return mem.New(ref.Info)
2019-09-12 04:29:39 +03:00
})
2019-09-01 00:00:24 +03:00
}