github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/third_party/org_golang_x_tools/refactor/eg/BUILD.bazel.in (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "go_default_library", 5 srcs = [ 6 "eg.go", 7 "match.go", 8 "rewrite.go", 9 ], 10 importpath = "golang.org/x/tools/refactor/eg", 11 visibility = ["//visibility:public"], 12 deps = ["//go/ast/astutil:go_default_library"], 13 ) 14 15 go_test( 16 name = "go_default_xtest", 17 srcs = select({ 18 "@io_bazel_rules_go//go/platform:darwin": [ 19 "eg_test.go", 20 ], 21 "@io_bazel_rules_go//go/platform:dragonfly": [ 22 "eg_test.go", 23 ], 24 "@io_bazel_rules_go//go/platform:freebsd": [ 25 "eg_test.go", 26 ], 27 "@io_bazel_rules_go//go/platform:linux": [ 28 "eg_test.go", 29 ], 30 "@io_bazel_rules_go//go/platform:nacl": [ 31 "eg_test.go", 32 ], 33 "@io_bazel_rules_go//go/platform:netbsd": [ 34 "eg_test.go", 35 ], 36 "@io_bazel_rules_go//go/platform:openbsd": [ 37 "eg_test.go", 38 ], 39 "@io_bazel_rules_go//go/platform:plan9": [ 40 "eg_test.go", 41 ], 42 "@io_bazel_rules_go//go/platform:solaris": [ 43 "eg_test.go", 44 ], 45 "@io_bazel_rules_go//go/platform:windows": [ 46 "eg_test.go", 47 ], 48 "//conditions:default": [], 49 }), 50 data = glob(["testdata/**"]), 51 deps = select({ 52 "@io_bazel_rules_go//go/platform:darwin": [ 53 ":go_default_library", 54 "//go/loader:go_default_library", 55 ], 56 "@io_bazel_rules_go//go/platform:dragonfly": [ 57 ":go_default_library", 58 "//go/loader:go_default_library", 59 ], 60 "@io_bazel_rules_go//go/platform:freebsd": [ 61 ":go_default_library", 62 "//go/loader:go_default_library", 63 ], 64 "@io_bazel_rules_go//go/platform:linux": [ 65 ":go_default_library", 66 "//go/loader:go_default_library", 67 ], 68 "@io_bazel_rules_go//go/platform:nacl": [ 69 ":go_default_library", 70 "//go/loader:go_default_library", 71 ], 72 "@io_bazel_rules_go//go/platform:netbsd": [ 73 ":go_default_library", 74 "//go/loader:go_default_library", 75 ], 76 "@io_bazel_rules_go//go/platform:openbsd": [ 77 ":go_default_library", 78 "//go/loader:go_default_library", 79 ], 80 "@io_bazel_rules_go//go/platform:plan9": [ 81 ":go_default_library", 82 "//go/loader:go_default_library", 83 ], 84 "@io_bazel_rules_go//go/platform:solaris": [ 85 ":go_default_library", 86 "//go/loader:go_default_library", 87 ], 88 "@io_bazel_rules_go//go/platform:windows": [ 89 ":go_default_library", 90 "//go/loader:go_default_library", 91 ], 92 "//conditions:default": [], 93 }), 94 )