blob: 4432d5c9e31bfe21d55cddbc84b5ea0cbc53bc77 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "allowlists",
srcs = ["allowlist.go"],
importpath = "go.skia.org/infra/npm-audit-mirror/go/allowlists",
visibility = ["//visibility:public"],
deps = [
"//go/skerr",
"//npm-audit-mirror/go/config",
"//npm-audit-mirror/go/types",
],
)
go_test(
name = "allowlists_test",
srcs = ["allowlist_test.go"],
embed = [":allowlists"],
deps = [
"//go/mockhttpclient",
"//npm-audit-mirror/go/types",
"@com_github_stretchr_testify//require",
],
)