forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
35 lines (33 loc) · 821 Bytes
/
BUILD.bazel
File metadata and controls
35 lines (33 loc) · 821 Bytes
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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "workloadlearning",
srcs = [
"handle.go",
"metrics.go",
],
importpath = "github.com/pingcap/tidb/pkg/workloadlearning",
visibility = ["//visibility:public"],
deps = [
"//pkg/infoschema",
"//pkg/kv",
"//pkg/parser/ast",
"//pkg/sessionctx",
"//pkg/sessiontxn",
"//pkg/util",
"//pkg/util/logutil",
"//pkg/util/sqlescape",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "workloadlearning_test",
timeout = "short",
srcs = ["handle_test.go"],
flaky = True,
deps = [
":workloadlearning",
"//pkg/parser/ast",
"//pkg/testkit",
"@com_github_stretchr_testify//require",
],
)