github.com/pingcap/tidb/parser@v0.0.0-20231013125129-93a834a6bf8d/terror/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
     2  
     3  go_library(
     4      name = "terror",
     5      srcs = ["terror.go"],
     6      importpath = "github.com/pingcap/tidb/parser/terror",
     7      visibility = ["//visibility:public"],
     8      deps = [
     9          "//parser/mysql",
    10          "@com_github_pingcap_errors//:errors",
    11          "@com_github_pingcap_log//:log",
    12          "@org_uber_go_zap//:zap",
    13      ],
    14  )
    15  
    16  go_test(
    17      name = "terror_test",
    18      timeout = "short",
    19      srcs = ["terror_test.go"],
    20      embed = [":terror"],
    21      flaky = True,
    22      shard_count = 6,
    23      deps = [
    24          "@com_github_pingcap_errors//:errors",
    25          "@com_github_stretchr_testify//require",
    26      ],
    27  )