mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
84916672c6
* replace eth2 types * replace protos * regen proto * replace * gaz * deps * amend * regen proto * mod * gaz * gaz * ensure build * ssz * add dep * no more eth2 types * no more eth2 * remg * all builds * buidl * tidy * clean * fmt * val serv * gaz Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
19 lines
434 B
Go
19 lines
434 B
Go
// Package testing includes useful mocks for slot tickers in unit tests.
|
|
package testing
|
|
|
|
import types "github.com/prysmaticlabs/prysm/consensus-types/primitives"
|
|
|
|
// MockTicker defines a useful struct for mocking the Ticker interface
|
|
// from the slotutil package.
|
|
type MockTicker struct {
|
|
Channel chan types.Slot
|
|
}
|
|
|
|
// C --
|
|
func (m *MockTicker) C() <-chan types.Slot {
|
|
return m.Channel
|
|
}
|
|
|
|
// Done --
|
|
func (_ *MockTicker) Done() {}
|