github.com/falafeljan/pkger@v0.18.0/pkging/pkgtest/current.go (about)

     1  package pkgtest
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/markbates/pkger/pkging"
     7  )
     8  
     9  func CurrentTest(t *testing.T, ref *Ref, pkg pkging.Pkger) {
    10  	cur, err := pkg.Current()
    11  	if err != nil {
    12  		t.Fatal(err)
    13  	}
    14  
    15  	cmpHereInfo(t, ref.Info, cur)
    16  }