forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
94 lines (92 loc) · 2.66 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
86
87
88
89
90
91
92
93
94
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "kv",
srcs = [
"cachedb.go",
"checker.go",
"error.go",
"fault_injection.go",
"iter.go",
"key.go",
"keyflags.go",
"kv.go",
"mpp.go",
"option.go",
"txn.go",
"txn_scope_var.go",
"utils.go",
"variables.go",
"version.go",
],
importpath = "github.com/pingcap/tidb/kv",
visibility = ["//visibility:public"],
deps = [
"//config",
"//errno",
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//types",
"//util/codec",
"//util/dbterror",
"//util/intest",
"//util/logutil",
"//util/memory",
"//util/set",
"//util/trxevents",
"@com_github_coocood_freecache//:freecache",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_pingcap_kvproto//pkg/deadlock",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_pingcap_kvproto//pkg/metapb",
"@com_github_pingcap_kvproto//pkg/mpp",
"@com_github_pingcap_tipb//go-tipb",
"@com_github_tikv_client_go_v2//kv",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//tikv",
"@com_github_tikv_client_go_v2//tikvrpc",
"@com_github_tikv_client_go_v2//util",
"@com_github_tikv_pd_client//:client",
"@org_golang_x_exp//slices",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "kv_test",
timeout = "short",
srcs = [
"checker_test.go",
"error_test.go",
"fault_injection_test.go",
"interface_mock_test.go",
"key_test.go",
"main_test.go",
"mock_test.go",
"txn_test.go",
"utils_test.go",
"version_test.go",
],
embed = [":kv"],
flaky = True,
deps = [
"//parser/model",
"//parser/mysql",
"//parser/terror",
"//sessionctx/stmtctx",
"//testkit/testsetup",
"//testkit/testutil",
"//types",
"//util/codec",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_kvproto//pkg/coprocessor",
"@com_github_pingcap_kvproto//pkg/deadlock",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_pingcap_tipb//go-tipb",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//tikv",
"@org_uber_go_goleak//:goleak",
],
)