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