github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/language/go/testdata/tests_per_file_new_file/BUILD.old (about)

     1  # gazelle:go_test file
     2  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     3  
     4  go_library(
     5      name = "tests_per_file_new_file",
     6      srcs = ["lib.go"],
     7      _gazelle_imports = [],
     8      importpath = "example.com/repo/tests_per_file_new_file",
     9      visibility = ["//visibility:public"],
    10  )
    11  
    12  go_test(
    13      name = "bar_test",
    14      srcs = ["bar_test.go"],
    15      _gazelle_imports = ["testing"],
    16      embed = [":tests_per_file_new_file"],
    17  )
    18  
    19  go_test(
    20      name = "external_test",
    21      srcs = ["external_test.go"],
    22      _gazelle_imports = [
    23          "example.com/repo/tests_per_file_new_file",
    24          "testing",
    25      ],
    26  )