load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "tablecodec", srcs = ["tablecodec.go"], importpath = "github.com/pingcap/tidb/tablecodec", visibility = ["//visibility:public"], deps = [ "//errno", "//kv", "//parser/charset", "//parser/model", "//parser/mysql", "//parser/terror", "//sessionctx/stmtctx", "//structure", "//types", "//util/codec", "//util/collate", "//util/dbterror", "//util/rowcodec", "//util/stringutil", "@com_github_pingcap_errors//:errors", ], ) go_test( name = "tablecodec_test", timeout = "short", srcs = [ "bench_test.go", "main_test.go", "tablecodec_test.go", ], embed = [":tablecodec"], flaky = True, deps = [ "//kv", "//parser/mysql", "//parser/terror", "//sessionctx/stmtctx", "//testkit/testsetup", "//types", "//util/benchdaily", "//util/codec", "//util/collate", "//util/rowcodec", "@com_github_pingcap_failpoint//:failpoint", "@com_github_stretchr_testify//require", "@org_uber_go_goleak//:goleak", ], )