...
1# gazelle:go_test file
2load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
3
4go_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
12go_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
22go_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)
View as plain text