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