blob: fc0696034422a86960dc4d7033e7f1c7aabbd175 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "gerrit",
srcs = ["gerrit.go"],
importpath = "go.skia.org/infra/perf/go/trybot/ingester/gerrit",
visibility = ["//visibility:public"],
deps = [
"//go/metrics2",
"//go/sklog",
"//perf/go/file",
"//perf/go/ingest/parser",
"//perf/go/trybot",
"//perf/go/trybot/ingester",
],
)
go_test(
name = "gerrit_test",
srcs = ["gerrit_test.go"],
data = glob(["testdata/**"]),
embed = [":gerrit"],
deps = [
"//go/testutils",
"//perf/go/config",
"//perf/go/file",
"//perf/go/ingest/parser",
"//perf/go/types",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)