aboutsummaryrefslogtreecommitdiff
path: root/go/tools/bzltestutil/BUILD.bazel
blob: cbb87e84ac8913dcff2f0e3e57fc18ae573c487d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"],
)