testing

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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
}

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) 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