pkger/pkging/stdos/stdos_test.go

38 lines
562 B
Go

package stdos
import (
"io/ioutil"
"testing"
"github.com/markbates/pkger/pkging"
"github.com/markbates/pkger/pkging/pkgtest"
)
func Test_Pkger(t *testing.T) {
suite, err := pkgtest.NewSuite("stdos", func() (pkging.Pkger, error) {
info, err := pkgtest.App()
if err != nil {
return nil, err
}
dir, err := ioutil.TempDir("", "stdos")
if err != nil {
return nil, err
}
info.Dir = dir
mypkging, err := New(info)
if err != nil {
return nil, err
}
return mypkging, nil
})
if err != nil {
t.Fatal(err)
}
suite.Test(t)
}