mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
3416962fc2
* 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>
24 lines
379 B
Go
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
|
|
}
|