testing

package
v1.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Overview

Package testing includes useful mocks for testing initial sync status in unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sync

type Sync struct {
	IsSyncing     bool
	IsInitialized bool
	IsSynced      bool
}

Sync defines a mock for the sync service.

func (*Sync) Initialized added in v1.1.0

func (s *Sync) Initialized() bool

Initialized --

func (*Sync) Resync added in v0.3.0

func (s *Sync) Resync() error

Resync --

func (*Sync) Status

func (s *Sync) Status() error

Status --

func (*Sync) Synced added in v1.4.1

func (s *Sync) Synced() bool

Synced --

func (*Sync) Syncing

func (s *Sync) Syncing() bool

Syncing --

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL