...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "promassert",
5 srcs = [
6 "assert.go",
7 "doc.go",
8 "http.go",
9 ],
10 importpath = "edge-infra.dev/pkg/lib/promassert",
11 visibility = ["//visibility:public"],
12 deps = [
13 "@com_github_prometheus_client_golang//prometheus/promhttp",
14 "@com_github_prometheus_client_model//go",
15 "@com_github_prometheus_common//expfmt",
16 ],
17)
18
19go_test(
20 name = "promassert_test",
21 srcs = [
22 "filter_test.go",
23 "setup_test.go",
24 "simple_test.go",
25 ],
26 deps = [
27 ":promassert",
28 "@com_github_prometheus_client_golang//prometheus",
29 "@com_github_prometheus_client_golang//prometheus/promauto",
30 ],
31)
View as plain text