forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is an automated cherry-pick of pingcap#48522
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
- Loading branch information
1 parent
425cda9
commit 8d9b8bd
Showing
13 changed files
with
9,767 additions
and
28 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
go_library( | ||
name = "ranger", | ||
srcs = [ | ||
"checker.go", | ||
"detacher.go", | ||
"points.go", | ||
"ranger.go", | ||
"types.go", | ||
], | ||
importpath = "github.com/pingcap/tidb/pkg/util/ranger", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pkg/errno", | ||
"//pkg/expression", | ||
"//pkg/kv", | ||
"//pkg/parser/ast", | ||
"//pkg/parser/charset", | ||
"//pkg/parser/format", | ||
"//pkg/parser/model", | ||
"//pkg/parser/mysql", | ||
"//pkg/parser/terror", | ||
"//pkg/planner/util/fixcontrol", | ||
"//pkg/sessionctx", | ||
"//pkg/sessionctx/stmtctx", | ||
"//pkg/types", | ||
"//pkg/types/parser_driver", | ||
"//pkg/util/chunk", | ||
"//pkg/util/codec", | ||
"//pkg/util/collate", | ||
"//pkg/util/dbterror", | ||
"//pkg/util/hack", | ||
"@com_github_pingcap_errors//:errors", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "ranger_test", | ||
timeout = "short", | ||
srcs = [ | ||
"bench_test.go", | ||
"main_test.go", | ||
"ranger_test.go", | ||
"types_test.go", | ||
], | ||
flaky = True, | ||
shard_count = 26, | ||
deps = [ | ||
":ranger", | ||
"//pkg/config", | ||
"//pkg/domain", | ||
"//pkg/expression", | ||
"//pkg/parser/ast", | ||
"//pkg/parser/model", | ||
"//pkg/parser/mysql", | ||
"//pkg/planner/core", | ||
"//pkg/session", | ||
"//pkg/sessionctx", | ||
"//pkg/testkit", | ||
"//pkg/testkit/testsetup", | ||
"//pkg/types", | ||
"//pkg/util/collate", | ||
"@com_github_stretchr_testify//require", | ||
"@org_uber_go_goleak//:goleak", | ||
], | ||
) |
Oops, something went wrong.