Files
tidb/executor/internal/pdhelper/BUILD.bazel

31 lines
769 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "pdhelper",
srcs = ["pd.go"],
importpath = "github.com/pingcap/tidb/executor/internal/pdhelper",
visibility = ["//executor:__subpackages__"],
deps = [
"//kv",
"//sessionctx",
"//store/helper",
"//util",
"//util/sqlexec",
"@com_github_jellydator_ttlcache_v3//:ttlcache",
"@com_github_pingcap_failpoint//:failpoint",
],
)
go_test(
name = "pdhelper_test",
timeout = "short",
srcs = ["pd_test.go"],
embed = [":pdhelper"],
flaky = True,
deps = [
"//sessionctx",
"@com_github_jellydator_ttlcache_v3//:ttlcache",
"@com_github_stretchr_testify//require",
],
)