2023-03-09 09:23:42 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
2023-03-20 06:15:57 -04:00
|
|
|
load("//bazel/go:go_test.bzl", "go_test")
|
2023-03-09 09:23:42 -05:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "sorted",
|
|
|
|
srcs = ["sorted.go"],
|
|
|
|
importpath = "github.com/edgelesssys/constellation/v2/measurement-reader/internal/sorted",
|
|
|
|
visibility = ["//measurement-reader:__subpackages__"],
|
2023-03-20 06:15:57 -04:00
|
|
|
deps = ["//internal/attestation/measurements"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "sorted_test",
|
|
|
|
srcs = ["sorted_test.go"],
|
|
|
|
embed = [":sorted"],
|
|
|
|
deps = [
|
|
|
|
"//internal/attestation/measurements",
|
|
|
|
"@com_github_stretchr_testify//assert",
|
|
|
|
],
|
2023-03-09 09:23:42 -05:00
|
|
|
)
|