mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 13:18:57 +00:00
546196a6fa
* e2e docs * slasher docs * Merge branch 'other-package-godocs' of github.com:prysmaticlabs/prysm into other-package-godocs * all validator package comments * Merge branch 'master' into other-package-godocs * completed all other packages * Merge branch 'master' into other-package-godocs * Merge refs/heads/master into other-package-godocs
19 lines
361 B
Go
19 lines
361 B
Go
// Package testing includes useful mocks for slot tickers in unit tests.
|
|
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
|
|
}
|