mocks

package
v1.21.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	CacheStub func() map[protocol.DeviceID]discover.CacheEntry

	ChildErrorsStub func() map[string]error

	ErrorStub func() error

	LookupStub func(context.Context, protocol.DeviceID) ([]string, error)

	ServeStub func(context.Context) error

	StringStub func() string
	// contains filtered or unexported fields
}

func (*Manager) Cache

func (fake *Manager) Cache() map[protocol.DeviceID]discover.CacheEntry

func (*Manager) CacheCallCount

func (fake *Manager) CacheCallCount() int

func (*Manager) CacheCalls

func (fake *Manager) CacheCalls(stub func() map[protocol.DeviceID]discover.CacheEntry)

func (*Manager) CacheReturns

func (fake *Manager) CacheReturns(result1 map[protocol.DeviceID]discover.CacheEntry)

func (*Manager) CacheReturnsOnCall

func (fake *Manager) CacheReturnsOnCall(i int, result1 map[protocol.DeviceID]discover.CacheEntry)

func (*Manager) ChildErrors

func (fake *Manager) ChildErrors() map[string]error

func (*Manager) ChildErrorsCallCount

func (fake *Manager) ChildErrorsCallCount() int

func (*Manager) ChildErrorsCalls

func (fake *Manager) ChildErrorsCalls(stub func() map[string]error)

func (*Manager) ChildErrorsReturns

func (fake *Manager) ChildErrorsReturns(result1 map[string]error)

func (*Manager) ChildErrorsReturnsOnCall

func (fake *Manager) ChildErrorsReturnsOnCall(i int, result1 map[string]error)

func (*Manager) Error

func (fake *Manager) Error() error

func (*Manager) ErrorCallCount

func (fake *Manager) ErrorCallCount() int

func (*Manager) ErrorCalls

func (fake *Manager) ErrorCalls(stub func() error)

func (*Manager) ErrorReturns

func (fake *Manager) ErrorReturns(result1 error)

func (*Manager) ErrorReturnsOnCall

func (fake *Manager) ErrorReturnsOnCall(i int, result1 error)

func (*Manager) Invocations

func (fake *Manager) Invocations() map[string][][]interface{}

func (*Manager) Lookup

func (fake *Manager) Lookup(arg1 context.Context, arg2 protocol.DeviceID) ([]string, error)

func (*Manager) LookupArgsForCall

func (fake *Manager) LookupArgsForCall(i int) (context.Context, protocol.DeviceID)

func (*Manager) LookupCallCount

func (fake *Manager) LookupCallCount() int

func (*Manager) LookupCalls

func (fake *Manager) LookupCalls(stub func(context.Context, protocol.DeviceID) ([]string, error))

func (*Manager) LookupReturns

func (fake *Manager) LookupReturns(result1 []string, result2 error)

func (*Manager) LookupReturnsOnCall

func (fake *Manager) LookupReturnsOnCall(i int, result1 []string, result2 error)

func (*Manager) Serve

func (fake *Manager) Serve(arg1 context.Context) error

func (*Manager) ServeArgsForCall

func (fake *Manager) ServeArgsForCall(i int) context.Context

func (*Manager) ServeCallCount

func (fake *Manager) ServeCallCount() int

func (*Manager) ServeCalls

func (fake *Manager) ServeCalls(stub func(context.Context) error)

func (*Manager) ServeReturns

func (fake *Manager) ServeReturns(result1 error)

func (*Manager) ServeReturnsOnCall

func (fake *Manager) ServeReturnsOnCall(i int, result1 error)

func (*Manager) String

func (fake *Manager) String() string

func (*Manager) StringCallCount

func (fake *Manager) StringCallCount() int

func (*Manager) StringCalls

func (fake *Manager) StringCalls(stub func() string)

func (*Manager) StringReturns

func (fake *Manager) StringReturns(result1 string)

func (*Manager) StringReturnsOnCall

func (fake *Manager) StringReturnsOnCall(i int, result1 string)

Jump to

Keyboard shortcuts

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