mirror of https://github.com/markbates/pkger.git
30 lines
435 B
Go
30 lines
435 B
Go
package mem
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/markbates/pkger/pkging"
|
|
"github.com/markbates/pkger/pkging/pkgtest"
|
|
)
|
|
|
|
func Test_Pkger(t *testing.T) {
|
|
suite, err := pkgtest.NewSuite("memos", func() (pkging.Pkger, error) {
|
|
info, err := pkgtest.App()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
pkg, err := New(info)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return pkg, nil
|
|
})
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
suite.Test(t)
|
|
}
|