mocks

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeySync

type KeySync struct {
	mock.Mock
}

KeySync is an autogenerated mock type for the KeySync type

func NewKeySync

func NewKeySync(t mockConstructorTestingTNewKeySync) *KeySync

NewKeySync creates a new instance of KeySync. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*KeySync) EXPECT

func (_m *KeySync) EXPECT() *KeySync_Expecter

func (*KeySync) SyncIfNeeded

func (_m *KeySync) SyncIfNeeded(entry *cache.Entry, gsks ...keysync.Syncable) error

SyncIfNeeded provides a mock function with given fields: entry, gsks

type KeySync_Expecter

type KeySync_Expecter struct {
	// contains filtered or unexported fields
}

func (*KeySync_Expecter) SyncIfNeeded

func (_e *KeySync_Expecter) SyncIfNeeded(entry interface{}, gsks ...interface{}) *KeySync_SyncIfNeeded_Call

SyncIfNeeded is a helper method to define mock.On call

  • entry *cache.Entry
  • gsks ...keysync.Syncable

type KeySync_SyncIfNeeded_Call

type KeySync_SyncIfNeeded_Call struct {
	*mock.Call
}

KeySync_SyncIfNeeded_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncIfNeeded'

func (*KeySync_SyncIfNeeded_Call) Return

func (*KeySync_SyncIfNeeded_Call) Run

func (_c *KeySync_SyncIfNeeded_Call) Run(run func(entry *cache.Entry, gsks ...keysync.Syncable)) *KeySync_SyncIfNeeded_Call

func (*KeySync_SyncIfNeeded_Call) RunAndReturn

Jump to

Keyboard shortcuts

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