pkger/pkging/pkgtest/current.go

17 lines
235 B
Go
Raw Normal View History

2019-11-01 23:08:10 +03:00
package pkgtest
2019-10-31 00:15:49 +03:00
import (
"testing"
"github.com/markbates/pkger/pkging"
)
func CurrentTest(t *testing.T, ref *Ref, pkg pkging.Pkger) {
cur, err := pkg.Current()
if err != nil {
t.Fatal(err)
}
2019-11-01 00:20:15 +03:00
cmpHereInfo(t, ref.Info, cur)
2019-10-31 00:15:49 +03:00
}