blob: 8e542186b89c44954ac4d34fd894ee3862daaa58 [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/emulators/gcp_emulator",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)