pkger/pkging/memware/warehouse_test.go

28 lines
431 B
Go

package memware
import (
"testing"
"github.com/markbates/pkger/here"
"github.com/markbates/pkger/pkging/waretest"
"github.com/stretchr/testify/require"
)
func Test_Warehouse(t *testing.T) {
r := require.New(t)
info, err := here.Current()
r.NoError(err)
r.NotZero(info)
mypkging, err := New(info)
r.NoError(err)
WithInfo(mypkging, info)
suite, err := waretest.NewSuite(mypkging)
r.NoError(err)
suite.Test(t)
}