mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
11efc8d512
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
27 lines
672 B
Python
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",
|
|
],
|
|
)
|