github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/tests_per_file_new_file/BUILD.want (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "tests_per_file_new_file", 5 srcs = ["lib.go"], 6 _gazelle_imports = [], 7 importpath = "example.com/repo/tests_per_file_new_file", 8 visibility = ["//visibility:public"], 9 ) 10 11 go_test( 12 name = "bar_test", 13 srcs = ["bar_test.go"], 14 _gazelle_imports = ["testing"], 15 embed = [":tests_per_file_new_file"], 16 ) 17 18 go_test( 19 name = "external_test", 20 srcs = ["external_test.go"], 21 _gazelle_imports = [ 22 "example.com/repo/tests_per_file_new_file", 23 "testing", 24 ], 25 ) 26 27 go_test( 28 name = "foo_test", 29 srcs = ["foo_test.go"], 30 _gazelle_imports = [ 31 "github.com/bazelbuild/bazel-gazelle/testtools", 32 "testing", 33 ], 34 embed = [":tests_per_file_new_file"], 35 )