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
|
load("//build:build.bzl", "go_custom_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "cache",
srcs = [
"cache.go",
"cache_with_err.go",
],
importpath = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/tool/cache",
visibility = ["//:__subpackages__"],
deps = [
"//internal/tool/mathz",
"//internal/tool/syncz",
"@io_opentelemetry_go_otel_trace//:trace",
],
)
go_custom_test(
name = "cache_test",
srcs = [
"cache_test.go",
"cache_with_err_test.go",
],
embed = [":cache"],
deps = [
"//internal/tool/testing/mock_cache",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@io_opentelemetry_go_otel_trace//noop",
"@org_uber_go_mock//gomock",
],
)
|