prysm-pulse/beacon-chain/sync/initial-sync/testing/mock.go
Raul Jordan 3416962fc2
All Beacon Node Package-Level Godocs (#5677)
* package level godocs fixed

* all beacon node godocs

* comment and gaz

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-04-29 12:40:33 -05:00

24 lines
379 B
Go

// Package testing includes useful mocks for testing initial
// sync status in unit tests.
package testing
// Sync defines a mock for the sync service.
type Sync struct {
IsSyncing bool
}
// Syncing --
func (s *Sync) Syncing() bool {
return s.IsSyncing
}
// Status --
func (s *Sync) Status() error {
return nil
}
// Resync --
func (s *Sync) Resync() error {
return nil
}