prysm-pulse/shared/slotutil/testing/mock.go
Victor Farazdagi b577869ed6
Fixes import aliases (#8497)
* Fixes import aliases

* another fix

* reset gw files

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-22 23:20:57 +00:00

19 lines
412 B
Go

// Package testing includes useful mocks for slot tickers in unit tests.
package testing
import types "github.com/prysmaticlabs/eth2-types"
// 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 (m *MockTicker) Done() {}