...
1load("//go:def.bzl", "go_test", "go_tool_library")
2
3go_tool_library(
4 name = "bzltestutil",
5 srcs = [
6 "lcov.go",
7 "test2json.go",
8 "timeout.go",
9 "wrap.go",
10 "xml.go",
11 ],
12 importpath = "github.com/bazelbuild/rules_go/go/tools/bzltestutil",
13 visibility = ["//visibility:public"],
14 deps = ["//go/tools/bzltestutil/chdir"],
15)
16
17go_test(
18 name = "bzltestutil_test",
19 srcs = [
20 "lcov_test.go",
21 "wrap_test.go",
22 "xml_test.go",
23 ],
24 # Empty in integration tests or in distributions.
25 data = glob(
26 ["testdata/**"],
27 allow_empty = True,
28 ),
29 embed = [":bzltestutil"],
30)
31
32filegroup(
33 name = "all_files",
34 testonly = True,
35 srcs = ["//go/tools/bzltestutil/chdir:all_files"] + glob(
36 ["**"],
37 exclude = ["testdata/*"],
38 ),
39 visibility = ["//visibility:public"],
40)
41
42alias(
43 name = "go_default_library",
44 actual = ":bzltestutil",
45 visibility = ["//visibility:public"],
46)
View as plain text