github.com/0xKiwi/rules_go@v0.24.3/tests/core/go_test/indirect_import_x_test.go (about)

     1  package indirect_import_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/bazelbuild/rules_go/tests/core/go_test/indirect_import_dep"
     7  )
     8  
     9  func Test(t *testing.T) {
    10  	got := indirect_import_dep.GetX()
    11  	want := "set by TestMain"
    12  	if got != want {
    13  		t.Errorf("got %q; want %q", got, want)
    14  	}
    15  }