prysm-pulse/shared/slotutil/testing/mock.go
Raul Jordan 546196a6fa
Other Package Godocs for Prysm (#5681)
* 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
2020-04-29 21:32:39 +00:00

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
}