prysm-pulse/time/slots/testing/mock.go
terence 5a66807989
Update to V5 (#13622)
* 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>
2024-02-15 05:46:47 +00:00

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() {}