...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "worker",
5 srcs = [
6 "message-worker.go",
7 "worker.go",
8 ],
9 importpath = "edge-infra.dev/pkg/edge/datasync/chirp/worker",
10 visibility = ["//visibility:public"],
11 deps = [
12 "//pkg/edge/datasync/chirp/provider",
13 "//pkg/edge/datasync/chirp/sender",
14 "//pkg/edge/datasync/internal/config",
15 "//pkg/lib/fog",
16 "@com_github_go_logr_logr//:logr",
17 ],
18)
19
20go_test(
21 name = "worker_test",
22 srcs = ["message-worker_test.go"],
23 data = glob(["testdata/**"]),
24 embed = [":worker"],
25 deps = [
26 "//pkg/edge/datasync/chirp/model",
27 "//pkg/edge/datasync/internal/config",
28 "//pkg/edge/datasync/internal/config/fake",
29 "@com_github_google_uuid//:uuid",
30 "@com_github_stretchr_testify//mock",
31 "@com_github_stretchr_testify//require",
32 ],
33)
View as plain text