github.com/0xKiwi/rules_go@v0.24.3/tests/legacy/test_build_constraints/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_test(
     4      name = "go_default_test",
     5      size = "small",
     6      srcs = [
     7          # Filtered by filename suffix
     8          "foo_linux_test.go",
     9          # Filtered by tag
    10          "foo_unknown_test.go",
    11          "bar_unknown_test.go",
    12      ],
    13      embed = [":go_default_library"],
    14  )
    15  
    16  # Contains more test cases. Checks that build constraints are applied to
    17  # sources found through the library attribute.
    18  go_library(
    19      name = "go_default_library",
    20      srcs = [
    21          "baz_linux_test.go",
    22          "baz_unknown_test.go",
    23      ],
    24      importpath = "github.com/bazelbuild/rules_go/tests/test_build_constraints",
    25  )