...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "rollouts",
5 srcs = [
6 "doc.go",
7 "gates.go",
8 "graph.go",
9 "nodes.go",
10 "options.go",
11 "plan.go",
12 ],
13 importpath = "edge-infra.dev/pkg/edge/rollouts",
14 visibility = ["//visibility:public"],
15)
16
17go_test(
18 name = "rollouts_test",
19 srcs = ["rollout_test.go"],
20 data = glob(["testdata/**"]),
21 embed = [":rollouts"],
22 embedsrcs = [
23 "testdata/bad-edge-graph.json",
24 "testdata/bad-edge-plan.json",
25 "testdata/simple-graph.json",
26 "testdata/simple-plan.json",
27 ],
28 deps = ["@com_github_stretchr_testify//assert"],
29)
View as plain text