forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
85 lines (83 loc) · 2.07 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "bindinfo",
srcs = [
"bind_cache.go",
"bind_record.go",
"handle.go",
"session_handle.go",
"stat.go",
],
importpath = "github.com/pingcap/tidb/bindinfo",
visibility = ["//visibility:public"],
deps = [
"//kv",
"//metrics",
"//parser",
"//parser/ast",
"//parser/format",
"//parser/mysql",
"//parser/terror",
"//sessionctx",
"//sessionctx/sessionstates",
"//sessionctx/stmtctx",
"//sessionctx/variable",
"//types",
"//types/parser_driver",
"//util/chunk",
"//util/hack",
"//util/hint",
"//util/kvcache",
"//util/logutil",
"//util/mathutil",
"//util/memory",
"//util/parser",
"//util/sqlexec",
"//util/stmtsummary/v2:stmtsummary",
"//util/table-filter",
"//util/timeutil",
"@org_golang_x_exp//maps",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "bindinfo_test",
timeout = "moderate",
srcs = [
"bind_cache_test.go",
"bind_test.go",
"capture_test.go",
"handle_test.go",
"main_test.go",
"optimize_test.go",
"session_handle_test.go",
"temptable_test.go",
],
embed = [":bindinfo"],
flaky = True,
race = "on",
shard_count = 50,
deps = [
"//config",
"//domain",
"//errno",
"//metrics",
"//parser",
"//parser/auth",
"//parser/model",
"//parser/terror",
"//server",
"//sessionctx/variable",
"//testkit",
"//testkit/testsetup",
"//util",
"//util/hack",
"//util/parser",
"//util/stmtsummary",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_prometheus_client_model//go",
"@com_github_stretchr_testify//require",
"@io_opencensus_go//stats/view",
"@org_uber_go_goleak//:goleak",
],
)