blob: 339c2126d62585bb60f803deb2cd3d1c0e81e5a7 [file] [log] [blame] [edit]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "gerrit",
srcs = [
"change_edit_helpers.go",
"config.go",
"gerrit.go",
],
importpath = "go.skia.org/infra/go/gerrit",
visibility = ["//visibility:public"],
deps = [
"//go/auth",
"//go/buildbucket",
"//go/git",
"//go/skerr",
"//go/sklog",
"//go/util",
"@com_github_cenkalti_backoff//:backoff",
"@com_github_golang_groupcache//lru",
"@org_chromium_go_luci//buildbucket/proto",
"@org_golang_x_time//rate",
],
)
go_test(
name = "gerrit_test",
srcs = [
"config_test.go",
"gerrit_test.go",
],
embed = [":gerrit"],
deps = [
"//go/httputils",
"//go/mockhttpclient",
"@com_github_stretchr_testify//require",
],
)