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
|
load("//build:build.bzl", "go_custom_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "syncz",
srcs = [
"doc.go",
"mutex.go",
"striped.go",
"subscriptions.go",
"worker.go",
"worker_manager.go",
],
importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/tool/syncz",
visibility = ["//:__subpackages__"],
deps = [
"@io_k8s_apimachinery//pkg/util/wait",
"@org_golang_google_protobuf//proto",
"@org_uber_go_zap//:zap",
],
)
go_custom_test(
name = "syncz_test",
srcs = [
"mock1_for_test.go",
"mock2_for_test.go",
"striped_test.go",
"subscriptions_test.go",
"worker_manager_test.go",
"worker_test.go",
],
embed = [":syncz"],
deps = [
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@io_k8s_apimachinery//pkg/util/wait",
"@org_uber_go_mock//gomock",
"@org_uber_go_zap//:zap",
"@org_uber_go_zap//zaptest",
],
)
|