-
Notifications
You must be signed in to change notification settings - Fork 5.9k
/
Copy pathBUILD.bazel
41 lines (39 loc) · 887 Bytes
/
BUILD.bazel
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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "structure",
srcs = [
"hash.go",
"list.go",
"string.go",
"structure.go",
"type.go",
],
importpath = "github.com/pingcap/tidb/structure",
visibility = ["//visibility:public"],
deps = [
"//errno",
"//kv",
"//util/codec",
"//util/dbterror",
"@com_github_pingcap_errors//:errors",
],
)
go_test(
name = "structure_test",
timeout = "short",
srcs = [
"main_test.go",
"structure_test.go",
],
embed = [":structure"],
flaky = True,
deps = [
"//kv",
"//parser/mysql",
"//parser/terror",
"//testkit",
"//testkit/testsetup",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)