summaryrefslogtreecommitdiffhomepage
path: root/tools/go_marshal/test/BUILD
blob: 5bceacd32f9d19c2b6e1d443c851029f3058aa1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
load("//tools:defs.bzl", "go_library", "go_test")

licenses(["notice"])

package_group(
    name = "gomarshal_test",
    packages = [
        "//tools/go_marshal/test/...",
    ],
)

go_test(
    name = "benchmark_test",
    srcs = ["benchmark_test.go"],
    deps = [
        ":test",
        "//pkg/binary",
        "//pkg/usermem",
        "//tools/go_marshal/analysis",
    ],
)

go_library(
    name = "test",
    testonly = 1,
    srcs = [
        "dynamic.go",
        "test.go",
    ],
    marshal = True,
    visibility = ["//tools/go_marshal/test:__subpackages__"],
    deps = [
        "//pkg/marshal/primitive",
        "//tools/go_marshal/test/external",
    ],
)

go_test(
    name = "marshal_test",
    size = "small",
    srcs = ["marshal_test.go"],
    deps = [
        ":test",
        "//pkg/marshal",
        "//pkg/marshal/primitive",
        "//pkg/syserror",
        "//pkg/usermem",
        "//tools/go_marshal/analysis",
        "@com_github_google_go_cmp//cmp:go_default_library",
    ],
)