mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
9b3e1eb643
* Implement GetHealth in the node API * repair fuzz mock Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
30 lines
484 B
Go
30 lines
484 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
|
|
IsInitialized bool
|
|
}
|
|
|
|
// Syncing --
|
|
func (s *Sync) Syncing() bool {
|
|
return s.IsSyncing
|
|
}
|
|
|
|
// Initialized --
|
|
func (s *Sync) Initialized() bool {
|
|
return s.IsInitialized
|
|
}
|
|
|
|
// Status --
|
|
func (s *Sync) Status() error {
|
|
return nil
|
|
}
|
|
|
|
// Resync --
|
|
func (s *Sync) Resync() error {
|
|
return nil
|
|
}
|