pkger/pkging/costello/current.go

17 lines
270 B
Go
Raw Normal View History

package costello
2019-10-31 00:15:49 +03:00
import (
"testing"
"github.com/markbates/pkger/pkging"
"github.com/stretchr/testify/require"
)
func CurrentTest(t *testing.T, ref *Ref, pkg pkging.Pkger) {
r := require.New(t)
cur, err := pkg.Current()
r.NoError(err)
r.Equal(ref.Info, cur)
}