19 lines
436 B
Python
19 lines
436 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "format",
|
|
srcs = ["format.go"],
|
|
importpath = "github.com/pingcap/tidb/parser/format",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_test(
|
|
name = "format_test",
|
|
srcs = ["format_test.go"],
|
|
embed = [":format"],
|
|
deps = [
|
|
"@com_github_pingcap_errors//:errors",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|