github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/tools/go_marshal/test/BUILD (about)

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