forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
58 lines (56 loc) · 1.35 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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "parser",
srcs = [
"digester.go",
"hintparser.go",
"hintparserimpl.go",
"lexer.go",
"misc.go",
"parser.go",
"yy_parser.go",
],
importpath = "github.com/pingcap/tidb/parser",
visibility = ["//visibility:public"],
deps = [
"//parser/ast",
"//parser/auth",
"//parser/charset",
"//parser/model",
"//parser/mysql",
"//parser/opcode",
"//parser/terror",
"//parser/tidb",
"//parser/types",
"@com_github_pingcap_errors//:errors",
],
)
go_test(
name = "parser_test",
timeout = "short",
srcs = [
"bench_test.go",
"consistent_test.go",
"digester_test.go",
"hintparser_test.go",
"lexer_test.go",
"main_test.go",
"parser_test.go",
],
data = glob(["**"]),
embed = [":parser"],
flaky = True,
deps = [
"//parser/ast",
"//parser/charset",
"//parser/format",
"//parser/model",
"//parser/mysql",
"//parser/opcode",
"//parser/terror",
"//parser/test_driver",
"@com_github_pingcap_errors//:errors",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)