mocks

package
v1.20.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MPL-2.0, MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

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 Connection

type Connection struct {
	CloseStub func(error)

	ClosedStub func() <-chan struct{}

	ClusterConfigStub func(protocol.ClusterConfig)

	CryptoStub func() string

	DownloadProgressStub func(context.Context, string, []protocol.FileDownloadProgressUpdate)

	EstablishedAtStub func() time.Time

	IDStub func() protocol.DeviceID

	IndexStub func(context.Context, string, []protocol.FileInfo) error

	IndexUpdateStub func(context.Context, string, []protocol.FileInfo) error

	PriorityStub func() int

	RemoteAddrStub func() net.Addr

	RequestStub func(context.Context, string, string, int, int64, int, []byte, uint32, bool) ([]byte, error)

	SetFolderPasswordsStub func(map[string]string)

	StartStub func()

	StatisticsStub func() protocol.Statistics

	StringStub func() string

	TransportStub func() string

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

func (*Connection) Close

func (fake *Connection) Close(arg1 error)

func (*Connection) CloseArgsForCall

func (fake *Connection) CloseArgsForCall(i int) error

func (*Connection) CloseCallCount

func (fake *Connection) CloseCallCount() int

func (*Connection) CloseCalls

func (fake *Connection) CloseCalls(stub func(error))

func (*Connection) Closed

func (fake *Connection) Closed() <-chan struct{}

func (*Connection) ClosedCallCount

func (fake *Connection) ClosedCallCount() int

func (*Connection) ClosedCalls

func (fake *Connection) ClosedCalls(stub func() <-chan struct{})

func (*Connection) ClosedReturns

func (fake *Connection) ClosedReturns(result1 <-chan struct{})

func (*Connection) ClosedReturnsOnCall

func (fake *Connection) ClosedReturnsOnCall(i int, result1 <-chan struct{})

func (*Connection) ClusterConfig

func (fake *Connection) ClusterConfig(arg1 protocol.ClusterConfig)

func (*Connection) ClusterConfigArgsForCall

func (fake *Connection) ClusterConfigArgsForCall(i int) protocol.ClusterConfig

func (*Connection) ClusterConfigCallCount

func (fake *Connection) ClusterConfigCallCount() int

func (*Connection) ClusterConfigCalls

func (fake *Connection) ClusterConfigCalls(stub func(protocol.ClusterConfig))

func (*Connection) Crypto

func (fake *Connection) Crypto() string

func (*Connection) CryptoCallCount

func (fake *Connection) CryptoCallCount() int

func (*Connection) CryptoCalls

func (fake *Connection) CryptoCalls(stub func() string)

func (*Connection) CryptoReturns

func (fake *Connection) CryptoReturns(result1 string)

func (*Connection) CryptoReturnsOnCall

func (fake *Connection) CryptoReturnsOnCall(i int, result1 string)

func (*Connection) DownloadProgress

func (fake *Connection) DownloadProgress(arg1 context.Context, arg2 string, arg3 []protocol.FileDownloadProgressUpdate)

func (*Connection) DownloadProgressArgsForCall

func (fake *Connection) DownloadProgressArgsForCall(i int) (context.Context, string, []protocol.FileDownloadProgressUpdate)

func (*Connection) DownloadProgressCallCount

func (fake *Connection) DownloadProgressCallCount() int

func (*Connection) DownloadProgressCalls

func (fake *Connection) DownloadProgressCalls(stub func(context.Context, string, []protocol.FileDownloadProgressUpdate))

func (*Connection) EstablishedAt

func (fake *Connection) EstablishedAt() time.Time

func (*Connection) EstablishedAtCallCount

func (fake *Connection) EstablishedAtCallCount() int

func (*Connection) EstablishedAtCalls

func (fake *Connection) EstablishedAtCalls(stub func() time.Time)

func (*Connection) EstablishedAtReturns

func (fake *Connection) EstablishedAtReturns(result1 time.Time)

func (*Connection) EstablishedAtReturnsOnCall

func (fake *Connection) EstablishedAtReturnsOnCall(i int, result1 time.Time)

func (*Connection) ID

func (fake *Connection) ID() protocol.DeviceID

func (*Connection) IDCallCount

func (fake *Connection) IDCallCount() int

func (*Connection) IDCalls

func (fake *Connection) IDCalls(stub func() protocol.DeviceID)

func (*Connection) IDReturns

func (fake *Connection) IDReturns(result1 protocol.DeviceID)

func (*Connection) IDReturnsOnCall

func (fake *Connection) IDReturnsOnCall(i int, result1 protocol.DeviceID)

func (*Connection) Index

func (fake *Connection) Index(arg1 context.Context, arg2 string, arg3 []protocol.FileInfo) error

func (*Connection) IndexArgsForCall

func (fake *Connection) IndexArgsForCall(i int) (context.Context, string, []protocol.FileInfo)

func (*Connection) IndexCallCount

func (fake *Connection) IndexCallCount() int

func (*Connection) IndexCalls

func (fake *Connection) IndexCalls(stub func(context.Context, string, []protocol.FileInfo) error)

func (*Connection) IndexReturns

func (fake *Connection) IndexReturns(result1 error)

func (*Connection) IndexReturnsOnCall

func (fake *Connection) IndexReturnsOnCall(i int, result1 error)

func (*Connection) IndexUpdate

func (fake *Connection) IndexUpdate(arg1 context.Context, arg2 string, arg3 []protocol.FileInfo) error

func (*Connection) IndexUpdateArgsForCall

func (fake *Connection) IndexUpdateArgsForCall(i int) (context.Context, string, []protocol.FileInfo)

func (*Connection) IndexUpdateCallCount

func (fake *Connection) IndexUpdateCallCount() int

func (*Connection) IndexUpdateCalls

func (fake *Connection) IndexUpdateCalls(stub func(context.Context, string, []protocol.FileInfo) error)

func (*Connection) IndexUpdateReturns

func (fake *Connection) IndexUpdateReturns(result1 error)

func (*Connection) IndexUpdateReturnsOnCall

func (fake *Connection) IndexUpdateReturnsOnCall(i int, result1 error)

func (*Connection) Invocations

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

func (*Connection) Priority

func (fake *Connection) Priority() int

func (*Connection) PriorityCallCount

func (fake *Connection) PriorityCallCount() int

func (*Connection) PriorityCalls

func (fake *Connection) PriorityCalls(stub func() int)

func (*Connection) PriorityReturns

func (fake *Connection) PriorityReturns(result1 int)

func (*Connection) PriorityReturnsOnCall

func (fake *Connection) PriorityReturnsOnCall(i int, result1 int)

func (*Connection) RemoteAddr

func (fake *Connection) RemoteAddr() net.Addr

func (*Connection) RemoteAddrCallCount

func (fake *Connection) RemoteAddrCallCount() int

func (*Connection) RemoteAddrCalls

func (fake *Connection) RemoteAddrCalls(stub func() net.Addr)

func (*Connection) RemoteAddrReturns

func (fake *Connection) RemoteAddrReturns(result1 net.Addr)

func (*Connection) RemoteAddrReturnsOnCall

func (fake *Connection) RemoteAddrReturnsOnCall(i int, result1 net.Addr)

func (*Connection) Request

func (fake *Connection) Request(arg1 context.Context, arg2 string, arg3 string, arg4 int, arg5 int64, arg6 int, arg7 []byte, arg8 uint32, arg9 bool) ([]byte, error)

func (*Connection) RequestArgsForCall

func (fake *Connection) RequestArgsForCall(i int) (context.Context, string, string, int, int64, int, []byte, uint32, bool)

func (*Connection) RequestCallCount

func (fake *Connection) RequestCallCount() int

func (*Connection) RequestCalls

func (fake *Connection) RequestCalls(stub func(context.Context, string, string, int, int64, int, []byte, uint32, bool) ([]byte, error))

func (*Connection) RequestReturns

func (fake *Connection) RequestReturns(result1 []byte, result2 error)

func (*Connection) RequestReturnsOnCall

func (fake *Connection) RequestReturnsOnCall(i int, result1 []byte, result2 error)

func (*Connection) SetFolderPasswords

func (fake *Connection) SetFolderPasswords(arg1 map[string]string)

func (*Connection) SetFolderPasswordsArgsForCall

func (fake *Connection) SetFolderPasswordsArgsForCall(i int) map[string]string

func (*Connection) SetFolderPasswordsCallCount

func (fake *Connection) SetFolderPasswordsCallCount() int

func (*Connection) SetFolderPasswordsCalls

func (fake *Connection) SetFolderPasswordsCalls(stub func(map[string]string))

func (*Connection) Start

func (fake *Connection) Start()

func (*Connection) StartCallCount

func (fake *Connection) StartCallCount() int

func (*Connection) StartCalls

func (fake *Connection) StartCalls(stub func())

func (*Connection) Statistics

func (fake *Connection) Statistics() protocol.Statistics

func (*Connection) StatisticsCallCount

func (fake *Connection) StatisticsCallCount() int

func (*Connection) StatisticsCalls

func (fake *Connection) StatisticsCalls(stub func() protocol.Statistics)

func (*Connection) StatisticsReturns

func (fake *Connection) StatisticsReturns(result1 protocol.Statistics)

func (*Connection) StatisticsReturnsOnCall

func (fake *Connection) StatisticsReturnsOnCall(i int, result1 protocol.Statistics)

func (*Connection) String

func (fake *Connection) String() string

func (*Connection) StringCallCount

func (fake *Connection) StringCallCount() int

func (*Connection) StringCalls

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

func (*Connection) StringReturns

func (fake *Connection) StringReturns(result1 string)

func (*Connection) StringReturnsOnCall

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

func (*Connection) Transport

func (fake *Connection) Transport() string

func (*Connection) TransportCallCount

func (fake *Connection) TransportCallCount() int

func (*Connection) TransportCalls

func (fake *Connection) TransportCalls(stub func() string)

func (*Connection) TransportReturns

func (fake *Connection) TransportReturns(result1 string)

func (*Connection) TransportReturnsOnCall

func (fake *Connection) TransportReturnsOnCall(i int, result1 string)

func (*Connection) Type

func (fake *Connection) Type() string

func (*Connection) TypeCallCount

func (fake *Connection) TypeCallCount() int

func (*Connection) TypeCalls

func (fake *Connection) TypeCalls(stub func() string)

func (*Connection) TypeReturns

func (fake *Connection) TypeReturns(result1 string)

func (*Connection) TypeReturnsOnCall

func (fake *Connection) TypeReturnsOnCall(i int, result1 string)

type ConnectionInfo

type ConnectionInfo struct {
	CryptoStub func() string

	EstablishedAtStub func() time.Time

	PriorityStub func() int

	RemoteAddrStub func() net.Addr

	StringStub func() string

	TransportStub func() string

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

func (*ConnectionInfo) Crypto

func (fake *ConnectionInfo) Crypto() string

func (*ConnectionInfo) CryptoCallCount

func (fake *ConnectionInfo) CryptoCallCount() int

func (*ConnectionInfo) CryptoCalls

func (fake *ConnectionInfo) CryptoCalls(stub func() string)

func (*ConnectionInfo) CryptoReturns

func (fake *ConnectionInfo) CryptoReturns(result1 string)

func (*ConnectionInfo) CryptoReturnsOnCall

func (fake *ConnectionInfo) CryptoReturnsOnCall(i int, result1 string)

func (*ConnectionInfo) EstablishedAt

func (fake *ConnectionInfo) EstablishedAt() time.Time

func (*ConnectionInfo) EstablishedAtCallCount

func (fake *ConnectionInfo) EstablishedAtCallCount() int

func (*ConnectionInfo) EstablishedAtCalls

func (fake *ConnectionInfo) EstablishedAtCalls(stub func() time.Time)

func (*ConnectionInfo) EstablishedAtReturns

func (fake *ConnectionInfo) EstablishedAtReturns(result1 time.Time)

func (*ConnectionInfo) EstablishedAtReturnsOnCall

func (fake *ConnectionInfo) EstablishedAtReturnsOnCall(i int, result1 time.Time)

func (*ConnectionInfo) Invocations

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

func (*ConnectionInfo) Priority

func (fake *ConnectionInfo) Priority() int

func (*ConnectionInfo) PriorityCallCount

func (fake *ConnectionInfo) PriorityCallCount() int

func (*ConnectionInfo) PriorityCalls

func (fake *ConnectionInfo) PriorityCalls(stub func() int)

func (*ConnectionInfo) PriorityReturns

func (fake *ConnectionInfo) PriorityReturns(result1 int)

func (*ConnectionInfo) PriorityReturnsOnCall

func (fake *ConnectionInfo) PriorityReturnsOnCall(i int, result1 int)

func (*ConnectionInfo) RemoteAddr

func (fake *ConnectionInfo) RemoteAddr() net.Addr

func (*ConnectionInfo) RemoteAddrCallCount

func (fake *ConnectionInfo) RemoteAddrCallCount() int

func (*ConnectionInfo) RemoteAddrCalls

func (fake *ConnectionInfo) RemoteAddrCalls(stub func() net.Addr)

func (*ConnectionInfo) RemoteAddrReturns

func (fake *ConnectionInfo) RemoteAddrReturns(result1 net.Addr)

func (*ConnectionInfo) RemoteAddrReturnsOnCall

func (fake *ConnectionInfo) RemoteAddrReturnsOnCall(i int, result1 net.Addr)

func (*ConnectionInfo) String

func (fake *ConnectionInfo) String() string

func (*ConnectionInfo) StringCallCount

func (fake *ConnectionInfo) StringCallCount() int

func (*ConnectionInfo) StringCalls

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

func (*ConnectionInfo) StringReturns

func (fake *ConnectionInfo) StringReturns(result1 string)

func (*ConnectionInfo) StringReturnsOnCall

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

func (*ConnectionInfo) Transport

func (fake *ConnectionInfo) Transport() string

func (*ConnectionInfo) TransportCallCount

func (fake *ConnectionInfo) TransportCallCount() int

func (*ConnectionInfo) TransportCalls

func (fake *ConnectionInfo) TransportCalls(stub func() string)

func (*ConnectionInfo) TransportReturns

func (fake *ConnectionInfo) TransportReturns(result1 string)

func (*ConnectionInfo) TransportReturnsOnCall

func (fake *ConnectionInfo) TransportReturnsOnCall(i int, result1 string)

func (*ConnectionInfo) Type

func (fake *ConnectionInfo) Type() string

func (*ConnectionInfo) TypeCallCount

func (fake *ConnectionInfo) TypeCallCount() int

func (*ConnectionInfo) TypeCalls

func (fake *ConnectionInfo) TypeCalls(stub func() string)

func (*ConnectionInfo) TypeReturns

func (fake *ConnectionInfo) TypeReturns(result1 string)

func (*ConnectionInfo) TypeReturnsOnCall

func (fake *ConnectionInfo) TypeReturnsOnCall(i int, result1 string)

Jump to

Keyboard shortcuts

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