blob: 28eea771ae1c06341b51602326fba215248aed6c [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "sub",
srcs = ["sub.go"],
importpath = "go.skia.org/infra/go/pubsub/sub",
visibility = ["//visibility:public"],
deps = [
"//go/skerr",
"@com_google_cloud_go_pubsub//:pubsub",
"@org_golang_google_api//option",
"@org_golang_x_oauth2//google",
],
)
go_test(
name = "sub_test",
srcs = [
"sub_manual_test.go",
"sub_test.go",
],
embed = [":sub"],
deps = [
"//go/testutils/unittest",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)