31 lines
742 B
Python
31 lines
742 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "conn_ip_example_lib",
|
|
srcs = ["conn_ip_example.go"],
|
|
importpath = "github.com/pingcap/tidb/plugin/conn_ip_example",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//plugin",
|
|
"//sessionctx/variable",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "conn_ip_example_test",
|
|
timeout = "short",
|
|
srcs = [
|
|
"conn_ip_example_test.go",
|
|
"main_test.go",
|
|
],
|
|
embed = [":conn_ip_example_lib"],
|
|
flaky = True,
|
|
deps = [
|
|
"//plugin",
|
|
"//sessionctx/variable",
|
|
"//testkit/testsetup",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
)
|