2020-05-05 07:22:26 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_test")
|
2018-10-14 15:29:57 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2019-10-21 23:15:32 +00:00
|
|
|
srcs = [
|
2020-06-12 18:47:18 +00:00
|
|
|
"countdown.go",
|
2019-10-21 23:15:32 +00:00
|
|
|
"slotticker.go",
|
|
|
|
"slottime.go",
|
|
|
|
],
|
2019-01-31 02:53:58 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/shared/slotutil",
|
2018-10-14 15:29:57 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2019-10-21 23:15:32 +00:00
|
|
|
deps = [
|
|
|
|
"//shared/params:go_default_library",
|
|
|
|
"//shared/roughtime:go_default_library",
|
2020-06-12 18:47:18 +00:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2019-10-21 23:15:32 +00:00
|
|
|
],
|
2018-10-14 15:29:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2019-06-30 16:00:22 +00:00
|
|
|
size = "small",
|
2020-06-12 18:47:18 +00:00
|
|
|
srcs = [
|
|
|
|
"countdown_test.go",
|
|
|
|
"slotticker_test.go",
|
2020-06-15 21:56:11 +00:00
|
|
|
"slottime_test.go",
|
2020-06-12 18:47:18 +00:00
|
|
|
],
|
2018-10-14 15:29:57 +00:00
|
|
|
embed = [":go_default_library"],
|
2020-06-12 18:47:18 +00:00
|
|
|
deps = [
|
|
|
|
"//shared/params:go_default_library",
|
|
|
|
"//shared/roughtime:go_default_library",
|
2020-08-13 16:22:25 +00:00
|
|
|
"//shared/testutil/require:go_default_library",
|
2020-06-12 18:47:18 +00:00
|
|
|
"@com_github_sirupsen_logrus//hooks/test:go_default_library",
|
|
|
|
],
|
2018-10-14 15:29:57 +00:00
|
|
|
)
|