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/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", ], )