forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILD.bazel
71 lines (69 loc) · 1.7 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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "cache",
srcs = [
"base.go",
"infoschema.go",
"table.go",
"task.go",
"ttlstatus.go",
],
importpath = "github.com/pingcap/tidb/ttl/cache",
visibility = ["//visibility:public"],
deps = [
"//infoschema",
"//kv",
"//parser/ast",
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//sessionctx",
"//table/tables",
"//tablecodec",
"//ttl/session",
"//types",
"//util/chunk",
"//util/codec",
"//util/logutil",
"//util/mathutil",
"@com_github_pingcap_errors//:errors",
"@com_github_tikv_client_go_v2//tikv",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "cache_test",
timeout = "short",
srcs = [
"base_test.go",
"infoschema_test.go",
"main_test.go",
"split_test.go",
"table_test.go",
"task_test.go",
"ttlstatus_test.go",
],
embed = [":cache"],
flaky = True,
shard_count = 13,
deps = [
"//infoschema",
"//kv",
"//parser/model",
"//server",
"//session",
"//store/helper",
"//tablecodec",
"//testkit",
"//testkit/testsetup",
"//ttl/session",
"//types",
"//util/codec",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_pd_client//:client",
"@org_uber_go_goleak//:goleak",
],
)