mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
5a66807989
* First take at updating everything to v5 * Patch gRPC gateway to use prysm v5 Fix patch * Update go ssz --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
19 lines
441 B
Go
19 lines
441 B
Go
// Package testing includes useful mocks for slot tickers in unit tests.
|
|
package testing
|
|
|
|
import "github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
|
|
// MockTicker defines a useful struct for mocking the Ticker interface
|
|
// from the slotutil package.
|
|
type MockTicker struct {
|
|
Channel chan primitives.Slot
|
|
}
|
|
|
|
// C --
|
|
func (m *MockTicker) C() <-chan primitives.Slot {
|
|
return m.Channel
|
|
}
|
|
|
|
// Done --
|
|
func (_ *MockTicker) Done() {}
|