constellation/hack/gocoverage/BUILD.bazel
Paul Meyer 11efc8d512 ci: comment Go coverage report on PR
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-08-28 15:44:07 +02:00

27 lines
672 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "gocoverage_lib",
srcs = ["main.go"],
importpath = "github.com/edgelesssys/constellation/v2/hack/gocoverage",
visibility = ["//visibility:private"],
deps = ["@org_golang_x_exp//slices"],
)
go_binary(
name = "gocoverage",
embed = [":gocoverage_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "gocoverage_test",
srcs = ["main_test.go"],
embed = [":gocoverage_lib"],
deps = [
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)