forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
52 lines (50 loc) · 1.3 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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "mock",
srcs = [
"client.go",
"context.go",
"iter.go",
"store.go",
],
importpath = "github.com/pingcap/tidb/util/mock",
visibility = ["//visibility:public"],
deps = [
"//kv",
"//parser/ast",
"//parser/model",
"//parser/terror",
"//sessionctx",
"//sessionctx/sessionstates",
"//sessionctx/variable",
"//util",
"//util/disk",
"//util/kvcache",
"//util/memory",
"//util/sli",
"//util/sqlexec",
"//util/topsql/stmtstats",
"@com_github_pingcap_errors//:errors",
"@com_github_pingcap_kvproto//pkg/deadlock",
"@com_github_pingcap_kvproto//pkg/kvrpcpb",
"@com_github_pingcap_tipb//go-binlog",
"@com_github_stretchr_testify//assert",
"@com_github_tikv_client_go_v2//oracle",
"@com_github_tikv_client_go_v2//tikv",
],
)
go_test(
name = "mock_test",
srcs = [
"iter_test.go",
"main_test.go",
"mock_test.go",
],
embed = [":mock"],
deps = [
"//kv",
"//testkit/testsetup",
"@com_github_stretchr_testify//assert",
"@org_uber_go_goleak//:goleak",
],
)