mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
18 lines
288 B
Go
18 lines
288 B
Go
|
package testing
|
||
|
|
||
|
// MockTicker defines a useful struct for mocking the Ticker interface
|
||
|
// from the slotutil package.
|
||
|
type MockTicker struct {
|
||
|
Channel chan uint64
|
||
|
}
|
||
|
|
||
|
// C --
|
||
|
func (m *MockTicker) C() <-chan uint64 {
|
||
|
return m.Channel
|
||
|
}
|
||
|
|
||
|
// Done --
|
||
|
func (m *MockTicker) Done() {
|
||
|
return
|
||
|
}
|