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