blob: b61abd5835cf7f0996ee49a9a52aa04bc0665515 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "db",
srcs = ["db.go"],
importpath = "go.skia.org/infra/npm-audit-mirror/go/db",
visibility = ["//visibility:public"],
deps = [
"//go/firestore",
"//go/skerr",
"//npm-audit-mirror/go/types",
"@org_golang_google_grpc//codes",
"@org_golang_google_grpc//status",
"@org_golang_x_oauth2//:oauth2",
],
)
go_test(
name = "db_test",
srcs = ["db_test.go"],
embed = [":db"],
deps = [
"//go/firestore/testutils",
"//go/sktest",
"//go/testutils/unittest",
"@com_github_stretchr_testify//require",
],
)