File: BUILD.bazel

package info (click to toggle)
gitlab-agent 16.1.3-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 6,324 kB
  • sloc: makefile: 175; sh: 52; ruby: 3
file content (59 lines) | stat: -rw-r--r-- 1,821 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
load("//build:build.bzl", "go_custom_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//build:proto.bzl", "go_proto_generate")

go_proto_generate(
    src = "redistool.proto",
)

go_library(
    name = "redistool",
    srcs = [
        "doc.go",
        "err_cacher.go",
        "expiring_hash.go",
        "redistool.go",
        "redistool.pb.go",
        "token_limiter.go",
    ],
    importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/tool/redistool",
    visibility = ["//:__subpackages__"],
    deps = [
        "//internal/tool/errz",
        "//internal/tool/logz",
        "@com_github_prometheus_client_golang//prometheus",
        "@com_github_redis_rueidis//:rueidis",
        "@org_golang_google_protobuf//proto",
        "@org_golang_google_protobuf//reflect/protoreflect",
        "@org_golang_google_protobuf//runtime/protoimpl",
        "@org_golang_x_sync//errgroup",
        "@org_uber_go_zap//:zap",
    ],
)

go_custom_test(
    name = "redistool_test",
    srcs = [
        "err_cacher_test.go",
        "expiring_hash_test.go",
        "mock_for_test.go",
        "token_limiter_test.go",
    ],
    embed = [":redistool"],
    deps = [
        "//internal/api",
        "//internal/tool/testing/matcher",
        "//internal/tool/testing/mock_tool",
        "//internal/tool/testing/testhelpers",
        "//internal/tool/tlstool",
        "@com_github_golang_mock//gomock",
        "@com_github_prometheus_client_golang//prometheus",
        "@com_github_redis_rueidis//:rueidis",
        "@com_github_redis_rueidis//mock",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@org_golang_google_protobuf//proto",
        "@org_uber_go_zap//:zap",
        "@org_uber_go_zap//zaptest",
    ],
)