testing

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

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

func (s *Sync) Initialized() bool

Initialized --

func (*Sync) Resync

func (_ *Sync) Resync() error

Resync --

func (*Sync) Status

func (_ *Sync) Status() error

Status --

func (*Sync) Synced

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