mirror of https://github.com/markbates/pkger.git
21 lines
313 B
Go
21 lines
313 B
Go
|
package mem
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/markbates/pkger/pkging/costello"
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func Test_Pkger_Current(t *testing.T) {
|
||
|
r := require.New(t)
|
||
|
|
||
|
ref, err := costello.NewRef()
|
||
|
r.NoError(err)
|
||
|
|
||
|
pkg, err := New(ref.Info)
|
||
|
r.NoError(err)
|
||
|
|
||
|
costello.CurrentTest(t, ref, pkg)
|
||
|
}
|