github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/third_party/org_golang_x_tools/cmd/cover/BUILD.bazel.in (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") 2 3 go_library( 4 name = "go_default_library", 5 srcs = [ 6 "cover.go", 7 "doc.go", 8 "func.go", 9 "html.go", 10 ], 11 importpath = "golang.org/x/tools/cmd/cover", 12 visibility = ["//visibility:private"], 13 deps = ["//cover:go_default_library"], 14 ) 15 16 go_binary( 17 name = "cover", 18 embed = [":go_default_library"], 19 visibility = ["//visibility:public"], 20 ) 21 22 go_test( 23 name = "go_default_xtest", 24 srcs = select({ 25 "@io_bazel_rules_go//go/platform:darwin": [ 26 "cover_test.go", 27 ], 28 "@io_bazel_rules_go//go/platform:dragonfly": [ 29 "cover_test.go", 30 ], 31 "@io_bazel_rules_go//go/platform:freebsd": [ 32 "cover_test.go", 33 ], 34 "@io_bazel_rules_go//go/platform:linux": [ 35 "cover_test.go", 36 ], 37 "@io_bazel_rules_go//go/platform:nacl": [ 38 "cover_test.go", 39 ], 40 "@io_bazel_rules_go//go/platform:netbsd": [ 41 "cover_test.go", 42 ], 43 "@io_bazel_rules_go//go/platform:openbsd": [ 44 "cover_test.go", 45 ], 46 "@io_bazel_rules_go//go/platform:plan9": [ 47 "cover_test.go", 48 ], 49 "@io_bazel_rules_go//go/platform:solaris": [ 50 "cover_test.go", 51 ], 52 "@io_bazel_rules_go//go/platform:windows": [ 53 "cover_test.go", 54 ], 55 "//conditions:default": [], 56 }), 57 )