diff options
Diffstat (limited to 'go/tools/bzltestutil/BUILD.bazel')
-rw-r--r-- | go/tools/bzltestutil/BUILD.bazel | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/go/tools/bzltestutil/BUILD.bazel b/go/tools/bzltestutil/BUILD.bazel new file mode 100644 index 00000000..cbb87e84 --- /dev/null +++ b/go/tools/bzltestutil/BUILD.bazel @@ -0,0 +1,45 @@ +load("//go:def.bzl", "go_test", "go_tool_library") + +go_tool_library( + name = "bzltestutil", + srcs = [ + "init.go", + "lcov.go", + "test2json.go", + "wrap.go", + "xml.go", + ], + importpath = "github.com/bazelbuild/rules_go/go/tools/bzltestutil", + visibility = ["//visibility:public"], +) + +go_test( + name = "bzltestutil_test", + srcs = [ + "lcov_test.go", + "wrap_test.go", + "xml_test.go", + ], + # Empty in integration tests or in distributions. + data = glob( + ["testdata/**"], + allow_empty = True, + ), + embed = [":bzltestutil"], +) + +filegroup( + name = "all_files", + testonly = True, + srcs = glob( + ["**"], + exclude = ["testdata/*"], + ), + visibility = ["//visibility:public"], +) + +alias( + name = "go_default_library", + actual = ":bzltestutil", + visibility = ["//visibility:public"], +) |