| load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| load("//bazel/go:go_test.bzl", "go_test") |
| |
| go_library( |
| name = "types", |
| srcs = ["types.go"], |
| importpath = "go.skia.org/infra/attest/go/types", |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//go/cache", |
| "//go/skerr", |
| "//go/sklog", |
| "//go/util", |
| "@org_golang_x_time//rate", |
| ], |
| ) |
| |
| go_test( |
| name = "types_test", |
| srcs = ["types_test.go"], |
| embed = [":types"], |
| deps = [ |
| "//attest/go/types/mocks", |
| "//go/cache/mock", |
| "//go/testutils", |
| "@com_github_stretchr_testify//require", |
| ], |
| ) |