Files
tidb/pkg/util/parser/BUILD.bazel
2025-03-25 10:56:45 +00:00

39 lines
871 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "parser",
srcs = [
"ast.go",
"parser.go",
],
importpath = "github.com/pingcap/tidb/pkg/util/parser",
visibility = ["//visibility:public"],
deps = [
"//pkg/parser",
"//pkg/parser/ast",
"//pkg/parser/format",
"//pkg/util/logutil",
"@com_github_pingcap_errors//:errors",
"@org_uber_go_zap//:zap",
],
)
go_test(
name = "parser_test",
timeout = "short",
srcs = [
"ast_test.go",
"main_test.go",
"parser_test.go",
],
flaky = True,
deps = [
":parser",
"//pkg/parser",
"//pkg/testkit/testsetup",
"//pkg/types/parser_driver",
"@com_github_stretchr_testify//require",
"@org_uber_go_goleak//:goleak",
],
)