blob: 1e445f692c4e83968a085c572dc7afb3f0d15771 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "state_machine",
srcs = ["state_machine.go"],
importpath = "go.skia.org/infra/autoroll/go/state_machine",
visibility = ["//visibility:public"],
deps = [
"//autoroll/go/config",
"//autoroll/go/modes",
"//autoroll/go/notifier",
"//autoroll/go/revision",
"//go/autoroll",
"//go/counters",
"//go/exec",
"//go/gcs",
"//go/metrics2",
"//go/skerr",
"//go/sklog",
"//go/state_machine",
],
)
go_test(
name = "state_machine_test",
srcs = ["state_machine_test.go"],
embed = [":state_machine"],
deps = [
"//autoroll/go/config",
"//autoroll/go/modes",
"//autoroll/go/notifier",
"//autoroll/go/revision",
"//email/go/emailclient",
"//go/autoroll",
"//go/gcs",
"//go/gcs/mem_gcsclient",
"@com_github_stretchr_testify//require",
],
)