58 lines
1.4 KiB
Python
58 lines
1.4 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "codec",
|
|
srcs = [
|
|
"bytes.go",
|
|
"codec.go",
|
|
"decimal.go",
|
|
"float.go",
|
|
"number.go",
|
|
],
|
|
importpath = "github.com/pingcap/tidb/pkg/util/codec",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//pkg/parser/mysql",
|
|
"//pkg/parser/terror",
|
|
"//pkg/planner/cascades/base",
|
|
"//pkg/types",
|
|
"//pkg/util/chunk",
|
|
"//pkg/util/collate",
|
|
"//pkg/util/hack",
|
|
"//pkg/util/intest",
|
|
"//pkg/util/logutil",
|
|
"//pkg/util/size",
|
|
"@com_github_pingcap_errors//:errors",
|
|
"@com_github_pingcap_failpoint//:failpoint",
|
|
"@org_uber_go_zap//:zap",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "codec_test",
|
|
timeout = "short",
|
|
srcs = [
|
|
"bench_test.go",
|
|
"bytes_test.go",
|
|
"codec_test.go",
|
|
"collation_test.go",
|
|
"decimal_test.go",
|
|
"main_test.go",
|
|
],
|
|
embed = [":codec"],
|
|
flaky = True,
|
|
deps = [
|
|
"//pkg/errctx",
|
|
"//pkg/parser/mysql",
|
|
"//pkg/parser/terror",
|
|
"//pkg/planner/cascades/base",
|
|
"//pkg/testkit/testsetup",
|
|
"//pkg/types",
|
|
"//pkg/util/benchdaily",
|
|
"//pkg/util/chunk",
|
|
"//pkg/util/collate",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_uber_go_goleak//:goleak",
|
|
],
|
|
)
|