blob: f288d9d15b2e48688cf42123614fd2b5a0ab5031 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "cacher",
srcs = ["cacher.go"],
importpath = "go.skia.org/infra/task_scheduler/go/cacher",
visibility = ["//visibility:public"],
deps = [
"//go/cas",
"//go/git",
"//go/skerr",
"//task_scheduler/go/specs",
"//task_scheduler/go/syncer",
"//task_scheduler/go/task_cfg_cache",
"//task_scheduler/go/types",
],
)
go_test(
name = "cacher_test",
srcs = ["cacher_test.go"],
data = ["//infra/config:recipes.cfg"],
embed = [":cacher"],
deps = [
"//go/cas/mocks",
"//go/cas/rbe",
"//go/deepequal/assertdeep",
"//go/depot_tools/testutils",
"//go/git/repograph",
"//go/git/testutils",
"//go/testutils",
"//go/testutils/unittest",
"//task_scheduler/go/specs",
"//task_scheduler/go/syncer",
"//task_scheduler/go/task_cfg_cache",
"//task_scheduler/go/task_cfg_cache/testutils",
"//task_scheduler/go/types",
"@com_github_stretchr_testify//mock",
"@com_github_stretchr_testify//require",
],
)