diff options
Diffstat (limited to 'tests/core/go_test/indirect_import_x_test.go')
-rw-r--r-- | tests/core/go_test/indirect_import_x_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/core/go_test/indirect_import_x_test.go b/tests/core/go_test/indirect_import_x_test.go new file mode 100644 index 00000000..008063ce --- /dev/null +++ b/tests/core/go_test/indirect_import_x_test.go @@ -0,0 +1,15 @@ +package indirect_import_test + +import ( + "testing" + + "github.com/bazelbuild/rules_go/tests/core/go_test/indirect_import_dep" +) + +func Test(t *testing.T) { + got := indirect_import_dep.GetX() + want := "set by TestMain" + if got != want { + t.Errorf("got %q; want %q", got, want) + } +} |