gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/tools/go_marshal/test/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(default_applicable_licenses = ["//:license"])
     4  
     5  licenses(["notice"])
     6  
     7  package_group(
     8      name = "gomarshal_test",
     9      packages = [
    10          "//tools/go_marshal/test/...",
    11      ],
    12  )
    13  
    14  go_test(
    15      name = "benchmark_test",
    16      srcs = ["benchmark_test.go"],
    17      deps = [
    18          ":test",
    19          "//pkg/binary",
    20          "//pkg/hostarch",
    21          "//tools/go_marshal/analysis",
    22      ],
    23  )
    24  
    25  go_library(
    26      name = "test",
    27      testonly = 1,
    28      srcs = [
    29          "dynamic.go",
    30          "test.go",
    31      ],
    32      marshal = True,
    33      visibility = ["//tools/go_marshal/test:__subpackages__"],
    34      deps = [
    35          "//pkg/marshal/primitive",
    36          "//tools/go_marshal/test/external",
    37      ],
    38  )
    39  
    40  go_test(
    41      name = "marshal_test",
    42      size = "small",
    43      srcs = ["marshal_test.go"],
    44      deps = [
    45          ":test",
    46          "//pkg/errors/linuxerr",
    47          "//pkg/hostarch",
    48          "//pkg/marshal",
    49          "//pkg/marshal/primitive",
    50          "//pkg/usermem",
    51          "//tools/go_marshal/analysis",
    52          "@com_github_google_go_cmp//cmp:go_default_library",
    53      ],
    54  )