34 lines
766 B
Python
34 lines
766 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "testutil",
|
|
srcs = [
|
|
"handle.go",
|
|
"require.go",
|
|
],
|
|
importpath = "github.com/pingcap/tidb/testkit/testutil",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//kv",
|
|
"//parser/mysql",
|
|
"//sessionctx/stmtctx",
|
|
"//types",
|
|
"//util/codec",
|
|
"//util/collate",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_golang_x_exp//slices",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "testutil_test",
|
|
timeout = "short",
|
|
srcs = ["require_test.go"],
|
|
embed = [":testutil"],
|
|
flaky = True,
|
|
deps = [
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
)
|