forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
39 lines (37 loc) · 1.04 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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "deadlockhistory",
srcs = ["deadlock_history.go"],
importpath = "github.com/pingcap/tidb/util/deadlockhistory",
visibility = ["//visibility:public"],
deps = [
"//parser/mysql",
"//types",
"//util/logutil",
"//util/resourcegrouptag",
"@com_github_tikv_client_go_v2//error",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "deadlockhistory_test",
timeout = "short",
srcs = [
"deadlock_history_test.go",
"main_test.go",
],
embed = [":deadlockhistory"],
flaky = True,
deps = [
"//parser",
"//parser/model",
"//testkit/testsetup",
"//types",
"@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_tikv_client_go_v2//error",
"@org_uber_go_goleak//:goleak",
],
)