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: 11 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 FolderSummaryService

type FolderSummaryService struct {
	OnEventRequestStub func()

	ServeStub func(context.Context) error

	SummaryStub func(string) (*model.FolderSummary, error)
	// contains filtered or unexported fields
}

func (*FolderSummaryService) Invocations

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

func (*FolderSummaryService) OnEventRequest

func (fake *FolderSummaryService) OnEventRequest()

func (*FolderSummaryService) OnEventRequestCallCount

func (fake *FolderSummaryService) OnEventRequestCallCount() int

func (*FolderSummaryService) OnEventRequestCalls

func (fake *FolderSummaryService) OnEventRequestCalls(stub func())

func (*FolderSummaryService) Serve

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

func (*FolderSummaryService) ServeArgsForCall

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

func (*FolderSummaryService) ServeCallCount

func (fake *FolderSummaryService) ServeCallCount() int

func (*FolderSummaryService) ServeCalls

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

func (*FolderSummaryService) ServeReturns

func (fake *FolderSummaryService) ServeReturns(result1 error)

func (*FolderSummaryService) ServeReturnsOnCall

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

func (*FolderSummaryService) Summary

func (fake *FolderSummaryService) Summary(arg1 string) (*model.FolderSummary, error)

func (*FolderSummaryService) SummaryArgsForCall

func (fake *FolderSummaryService) SummaryArgsForCall(i int) string

func (*FolderSummaryService) SummaryCallCount

func (fake *FolderSummaryService) SummaryCallCount() int

func (*FolderSummaryService) SummaryCalls

func (fake *FolderSummaryService) SummaryCalls(stub func(string) (*model.FolderSummary, error))

func (*FolderSummaryService) SummaryReturns

func (fake *FolderSummaryService) SummaryReturns(result1 *model.FolderSummary, result2 error)

func (*FolderSummaryService) SummaryReturnsOnCall

func (fake *FolderSummaryService) SummaryReturnsOnCall(i int, result1 *model.FolderSummary, result2 error)

type Model

type Model struct {
	AddConnectionStub func(protocol.Connection, protocol.Hello)

	AvailabilityStub func(string, protocol.FileInfo, protocol.BlockInfo) ([]model.Availability, error)

	BringToFrontStub func(string, string)

	ClosedStub func(protocol.DeviceID, error)

	ClusterConfigStub func(protocol.DeviceID, protocol.ClusterConfig) error

	CompletionStub func(protocol.DeviceID, string) (model.FolderCompletion, error)

	ConnectionStub func(protocol.DeviceID) (protocol.Connection, bool)

	ConnectionStatsStub func() map[string]interface{}

	CurrentFolderFileStub func(string, string) (protocol.FileInfo, bool, error)

	CurrentGlobalFileStub func(string, string) (protocol.FileInfo, bool, error)

	CurrentIgnoresStub func(string) ([]string, []string, error)

	DBSnapshotStub func(string) (*db.Snapshot, error)

	DelayScanStub func(string, time.Duration)

	DeviceStatisticsStub func() (map[protocol.DeviceID]stats.DeviceStatistics, error)

	DismissPendingDeviceStub func(protocol.DeviceID) error

	DismissPendingFolderStub func(protocol.DeviceID, string) error

	DownloadProgressStub func(protocol.DeviceID, string, []protocol.FileDownloadProgressUpdate) error

	FolderErrorsStub func(string) ([]model.FileError, error)

	FolderProgressBytesCompletedStub func(string) int64

	FolderStatisticsStub func() (map[string]stats.FolderStatistics, error)

	GetFolderVersionsStub func(string) (map[string][]versioner.FileVersion, error)

	GetHelloStub func(protocol.DeviceID) protocol.HelloIntf

	GetMtimeMappingStub func(string, string) (fs.MtimeMapping, error)

	GlobalDirectoryTreeStub func(string, string, int, bool) ([]*model.TreeEntry, error)

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

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

	LoadIgnoresStub func(string) ([]string, []string, error)

	LocalChangedFolderFilesStub func(string, int, int) ([]db.FileInfoTruncated, error)

	NeedFolderFilesStub func(string, int, int) ([]db.FileInfoTruncated, []db.FileInfoTruncated, []db.FileInfoTruncated, error)

	NumConnectionsStub func() int

	OnHelloStub func(protocol.DeviceID, net.Addr, protocol.Hello) error

	OverrideStub func(string)

	PendingDevicesStub func() (map[protocol.DeviceID]db.ObservedDevice, error)

	PendingFoldersStub func(protocol.DeviceID) (map[string]db.PendingFolder, error)

	RemoteNeedFolderFilesStub func(string, protocol.DeviceID, int, int) ([]db.FileInfoTruncated, error)

	RequestStub func(protocol.DeviceID, string, string, int32, int32, int64, []byte, uint32, bool) (protocol.RequestResponse, error)

	ResetFolderStub func(string) error

	RestoreFolderVersionsStub func(string, map[string]time.Time) (map[string]error, error)

	RevertStub func(string)

	ScanFolderStub func(string) error

	ScanFolderSubdirsStub func(string, []string) error

	ScanFoldersStub func() map[string]error

	ServeStub func(context.Context) error

	SetIgnoresStub func(string, []string) error

	StartDeadlockDetectorStub func(time.Duration)

	StateStub func(string) (string, time.Time, error)

	UsageReportingStatsStub func(*contract.Report, int, bool)

	WatchErrorStub func(string) error
	// contains filtered or unexported fields
}

func (*Model) AddConnection

func (fake *Model) AddConnection(arg1 protocol.Connection, arg2 protocol.Hello)

func (*Model) AddConnectionArgsForCall

func (fake *Model) AddConnectionArgsForCall(i int) (protocol.Connection, protocol.Hello)

func (*Model) AddConnectionCallCount

func (fake *Model) AddConnectionCallCount() int

func (*Model) AddConnectionCalls

func (fake *Model) AddConnectionCalls(stub func(protocol.Connection, protocol.Hello))

func (*Model) Availability

func (fake *Model) Availability(arg1 string, arg2 protocol.FileInfo, arg3 protocol.BlockInfo) ([]model.Availability, error)

func (*Model) AvailabilityArgsForCall

func (fake *Model) AvailabilityArgsForCall(i int) (string, protocol.FileInfo, protocol.BlockInfo)

func (*Model) AvailabilityCallCount

func (fake *Model) AvailabilityCallCount() int

func (*Model) AvailabilityCalls

func (fake *Model) AvailabilityCalls(stub func(string, protocol.FileInfo, protocol.BlockInfo) ([]model.Availability, error))

func (*Model) AvailabilityReturns

func (fake *Model) AvailabilityReturns(result1 []model.Availability, result2 error)

func (*Model) AvailabilityReturnsOnCall

func (fake *Model) AvailabilityReturnsOnCall(i int, result1 []model.Availability, result2 error)

func (*Model) BringToFront

func (fake *Model) BringToFront(arg1 string, arg2 string)

func (*Model) BringToFrontArgsForCall

func (fake *Model) BringToFrontArgsForCall(i int) (string, string)

func (*Model) BringToFrontCallCount

func (fake *Model) BringToFrontCallCount() int

func (*Model) BringToFrontCalls

func (fake *Model) BringToFrontCalls(stub func(string, string))

func (*Model) Closed

func (fake *Model) Closed(arg1 protocol.DeviceID, arg2 error)

func (*Model) ClosedArgsForCall

func (fake *Model) ClosedArgsForCall(i int) (protocol.DeviceID, error)

func (*Model) ClosedCallCount

func (fake *Model) ClosedCallCount() int

func (*Model) ClosedCalls

func (fake *Model) ClosedCalls(stub func(protocol.DeviceID, error))

func (*Model) ClusterConfig

func (fake *Model) ClusterConfig(arg1 protocol.DeviceID, arg2 protocol.ClusterConfig) error

func (*Model) ClusterConfigArgsForCall

func (fake *Model) ClusterConfigArgsForCall(i int) (protocol.DeviceID, protocol.ClusterConfig)

func (*Model) ClusterConfigCallCount

func (fake *Model) ClusterConfigCallCount() int

func (*Model) ClusterConfigCalls

func (fake *Model) ClusterConfigCalls(stub func(protocol.DeviceID, protocol.ClusterConfig) error)

func (*Model) ClusterConfigReturns

func (fake *Model) ClusterConfigReturns(result1 error)

func (*Model) ClusterConfigReturnsOnCall

func (fake *Model) ClusterConfigReturnsOnCall(i int, result1 error)

func (*Model) Completion

func (fake *Model) Completion(arg1 protocol.DeviceID, arg2 string) (model.FolderCompletion, error)

func (*Model) CompletionArgsForCall

func (fake *Model) CompletionArgsForCall(i int) (protocol.DeviceID, string)

func (*Model) CompletionCallCount

func (fake *Model) CompletionCallCount() int

func (*Model) CompletionCalls

func (fake *Model) CompletionCalls(stub func(protocol.DeviceID, string) (model.FolderCompletion, error))

func (*Model) CompletionReturns

func (fake *Model) CompletionReturns(result1 model.FolderCompletion, result2 error)

func (*Model) CompletionReturnsOnCall

func (fake *Model) CompletionReturnsOnCall(i int, result1 model.FolderCompletion, result2 error)

func (*Model) Connection

func (fake *Model) Connection(arg1 protocol.DeviceID) (protocol.Connection, bool)

func (*Model) ConnectionArgsForCall

func (fake *Model) ConnectionArgsForCall(i int) protocol.DeviceID

func (*Model) ConnectionCallCount

func (fake *Model) ConnectionCallCount() int

func (*Model) ConnectionCalls

func (fake *Model) ConnectionCalls(stub func(protocol.DeviceID) (protocol.Connection, bool))

func (*Model) ConnectionReturns

func (fake *Model) ConnectionReturns(result1 protocol.Connection, result2 bool)

func (*Model) ConnectionReturnsOnCall

func (fake *Model) ConnectionReturnsOnCall(i int, result1 protocol.Connection, result2 bool)

func (*Model) ConnectionStats

func (fake *Model) ConnectionStats() map[string]interface{}

func (*Model) ConnectionStatsCallCount

func (fake *Model) ConnectionStatsCallCount() int

func (*Model) ConnectionStatsCalls

func (fake *Model) ConnectionStatsCalls(stub func() map[string]interface{})

func (*Model) ConnectionStatsReturns

func (fake *Model) ConnectionStatsReturns(result1 map[string]interface{})

func (*Model) ConnectionStatsReturnsOnCall

func (fake *Model) ConnectionStatsReturnsOnCall(i int, result1 map[string]interface{})

func (*Model) CurrentFolderFile

func (fake *Model) CurrentFolderFile(arg1 string, arg2 string) (protocol.FileInfo, bool, error)

func (*Model) CurrentFolderFileArgsForCall

func (fake *Model) CurrentFolderFileArgsForCall(i int) (string, string)

func (*Model) CurrentFolderFileCallCount

func (fake *Model) CurrentFolderFileCallCount() int

func (*Model) CurrentFolderFileCalls

func (fake *Model) CurrentFolderFileCalls(stub func(string, string) (protocol.FileInfo, bool, error))

func (*Model) CurrentFolderFileReturns

func (fake *Model) CurrentFolderFileReturns(result1 protocol.FileInfo, result2 bool, result3 error)

func (*Model) CurrentFolderFileReturnsOnCall

func (fake *Model) CurrentFolderFileReturnsOnCall(i int, result1 protocol.FileInfo, result2 bool, result3 error)

func (*Model) CurrentGlobalFile

func (fake *Model) CurrentGlobalFile(arg1 string, arg2 string) (protocol.FileInfo, bool, error)

func (*Model) CurrentGlobalFileArgsForCall

func (fake *Model) CurrentGlobalFileArgsForCall(i int) (string, string)

func (*Model) CurrentGlobalFileCallCount

func (fake *Model) CurrentGlobalFileCallCount() int

func (*Model) CurrentGlobalFileCalls

func (fake *Model) CurrentGlobalFileCalls(stub func(string, string) (protocol.FileInfo, bool, error))

func (*Model) CurrentGlobalFileReturns

func (fake *Model) CurrentGlobalFileReturns(result1 protocol.FileInfo, result2 bool, result3 error)

func (*Model) CurrentGlobalFileReturnsOnCall

func (fake *Model) CurrentGlobalFileReturnsOnCall(i int, result1 protocol.FileInfo, result2 bool, result3 error)

func (*Model) CurrentIgnores

func (fake *Model) CurrentIgnores(arg1 string) ([]string, []string, error)

func (*Model) CurrentIgnoresArgsForCall

func (fake *Model) CurrentIgnoresArgsForCall(i int) string

func (*Model) CurrentIgnoresCallCount

func (fake *Model) CurrentIgnoresCallCount() int

func (*Model) CurrentIgnoresCalls

func (fake *Model) CurrentIgnoresCalls(stub func(string) ([]string, []string, error))

func (*Model) CurrentIgnoresReturns

func (fake *Model) CurrentIgnoresReturns(result1 []string, result2 []string, result3 error)

func (*Model) CurrentIgnoresReturnsOnCall

func (fake *Model) CurrentIgnoresReturnsOnCall(i int, result1 []string, result2 []string, result3 error)

func (*Model) DBSnapshot

func (fake *Model) DBSnapshot(arg1 string) (*db.Snapshot, error)

func (*Model) DBSnapshotArgsForCall

func (fake *Model) DBSnapshotArgsForCall(i int) string

func (*Model) DBSnapshotCallCount

func (fake *Model) DBSnapshotCallCount() int

func (*Model) DBSnapshotCalls

func (fake *Model) DBSnapshotCalls(stub func(string) (*db.Snapshot, error))

func (*Model) DBSnapshotReturns

func (fake *Model) DBSnapshotReturns(result1 *db.Snapshot, result2 error)

func (*Model) DBSnapshotReturnsOnCall

func (fake *Model) DBSnapshotReturnsOnCall(i int, result1 *db.Snapshot, result2 error)

func (*Model) DelayScan

func (fake *Model) DelayScan(arg1 string, arg2 time.Duration)

func (*Model) DelayScanArgsForCall

func (fake *Model) DelayScanArgsForCall(i int) (string, time.Duration)

func (*Model) DelayScanCallCount

func (fake *Model) DelayScanCallCount() int

func (*Model) DelayScanCalls

func (fake *Model) DelayScanCalls(stub func(string, time.Duration))

func (*Model) DeviceStatistics

func (fake *Model) DeviceStatistics() (map[protocol.DeviceID]stats.DeviceStatistics, error)

func (*Model) DeviceStatisticsCallCount

func (fake *Model) DeviceStatisticsCallCount() int

func (*Model) DeviceStatisticsCalls

func (fake *Model) DeviceStatisticsCalls(stub func() (map[protocol.DeviceID]stats.DeviceStatistics, error))

func (*Model) DeviceStatisticsReturns

func (fake *Model) DeviceStatisticsReturns(result1 map[protocol.DeviceID]stats.DeviceStatistics, result2 error)

func (*Model) DeviceStatisticsReturnsOnCall

func (fake *Model) DeviceStatisticsReturnsOnCall(i int, result1 map[protocol.DeviceID]stats.DeviceStatistics, result2 error)

func (*Model) DismissPendingDevice added in v1.18.0

func (fake *Model) DismissPendingDevice(arg1 protocol.DeviceID) error

func (*Model) DismissPendingDeviceArgsForCall added in v1.18.0

func (fake *Model) DismissPendingDeviceArgsForCall(i int) protocol.DeviceID

func (*Model) DismissPendingDeviceCallCount added in v1.18.0

func (fake *Model) DismissPendingDeviceCallCount() int

func (*Model) DismissPendingDeviceCalls added in v1.18.0

func (fake *Model) DismissPendingDeviceCalls(stub func(protocol.DeviceID) error)

func (*Model) DismissPendingDeviceReturns added in v1.18.0

func (fake *Model) DismissPendingDeviceReturns(result1 error)

func (*Model) DismissPendingDeviceReturnsOnCall added in v1.18.0

func (fake *Model) DismissPendingDeviceReturnsOnCall(i int, result1 error)

func (*Model) DismissPendingFolder added in v1.18.0

func (fake *Model) DismissPendingFolder(arg1 protocol.DeviceID, arg2 string) error

func (*Model) DismissPendingFolderArgsForCall added in v1.18.0

func (fake *Model) DismissPendingFolderArgsForCall(i int) (protocol.DeviceID, string)

func (*Model) DismissPendingFolderCallCount added in v1.18.0

func (fake *Model) DismissPendingFolderCallCount() int

func (*Model) DismissPendingFolderCalls added in v1.18.0

func (fake *Model) DismissPendingFolderCalls(stub func(protocol.DeviceID, string) error)

func (*Model) DismissPendingFolderReturns added in v1.18.0

func (fake *Model) DismissPendingFolderReturns(result1 error)

func (*Model) DismissPendingFolderReturnsOnCall added in v1.18.0

func (fake *Model) DismissPendingFolderReturnsOnCall(i int, result1 error)

func (*Model) DownloadProgress

func (fake *Model) DownloadProgress(arg1 protocol.DeviceID, arg2 string, arg3 []protocol.FileDownloadProgressUpdate) error

func (*Model) DownloadProgressArgsForCall

func (fake *Model) DownloadProgressArgsForCall(i int) (protocol.DeviceID, string, []protocol.FileDownloadProgressUpdate)

func (*Model) DownloadProgressCallCount

func (fake *Model) DownloadProgressCallCount() int

func (*Model) DownloadProgressCalls

func (fake *Model) DownloadProgressCalls(stub func(protocol.DeviceID, string, []protocol.FileDownloadProgressUpdate) error)

func (*Model) DownloadProgressReturns

func (fake *Model) DownloadProgressReturns(result1 error)

func (*Model) DownloadProgressReturnsOnCall

func (fake *Model) DownloadProgressReturnsOnCall(i int, result1 error)

func (*Model) FolderErrors

func (fake *Model) FolderErrors(arg1 string) ([]model.FileError, error)

func (*Model) FolderErrorsArgsForCall

func (fake *Model) FolderErrorsArgsForCall(i int) string

func (*Model) FolderErrorsCallCount

func (fake *Model) FolderErrorsCallCount() int

func (*Model) FolderErrorsCalls

func (fake *Model) FolderErrorsCalls(stub func(string) ([]model.FileError, error))

func (*Model) FolderErrorsReturns

func (fake *Model) FolderErrorsReturns(result1 []model.FileError, result2 error)

func (*Model) FolderErrorsReturnsOnCall

func (fake *Model) FolderErrorsReturnsOnCall(i int, result1 []model.FileError, result2 error)

func (*Model) FolderProgressBytesCompleted

func (fake *Model) FolderProgressBytesCompleted(arg1 string) int64

func (*Model) FolderProgressBytesCompletedArgsForCall

func (fake *Model) FolderProgressBytesCompletedArgsForCall(i int) string

func (*Model) FolderProgressBytesCompletedCallCount

func (fake *Model) FolderProgressBytesCompletedCallCount() int

func (*Model) FolderProgressBytesCompletedCalls

func (fake *Model) FolderProgressBytesCompletedCalls(stub func(string) int64)

func (*Model) FolderProgressBytesCompletedReturns

func (fake *Model) FolderProgressBytesCompletedReturns(result1 int64)

func (*Model) FolderProgressBytesCompletedReturnsOnCall

func (fake *Model) FolderProgressBytesCompletedReturnsOnCall(i int, result1 int64)

func (*Model) FolderStatistics

func (fake *Model) FolderStatistics() (map[string]stats.FolderStatistics, error)

func (*Model) FolderStatisticsCallCount

func (fake *Model) FolderStatisticsCallCount() int

func (*Model) FolderStatisticsCalls

func (fake *Model) FolderStatisticsCalls(stub func() (map[string]stats.FolderStatistics, error))

func (*Model) FolderStatisticsReturns

func (fake *Model) FolderStatisticsReturns(result1 map[string]stats.FolderStatistics, result2 error)

func (*Model) FolderStatisticsReturnsOnCall

func (fake *Model) FolderStatisticsReturnsOnCall(i int, result1 map[string]stats.FolderStatistics, result2 error)

func (*Model) GetFolderVersions

func (fake *Model) GetFolderVersions(arg1 string) (map[string][]versioner.FileVersion, error)

func (*Model) GetFolderVersionsArgsForCall

func (fake *Model) GetFolderVersionsArgsForCall(i int) string

func (*Model) GetFolderVersionsCallCount

func (fake *Model) GetFolderVersionsCallCount() int

func (*Model) GetFolderVersionsCalls

func (fake *Model) GetFolderVersionsCalls(stub func(string) (map[string][]versioner.FileVersion, error))

func (*Model) GetFolderVersionsReturns

func (fake *Model) GetFolderVersionsReturns(result1 map[string][]versioner.FileVersion, result2 error)

func (*Model) GetFolderVersionsReturnsOnCall

func (fake *Model) GetFolderVersionsReturnsOnCall(i int, result1 map[string][]versioner.FileVersion, result2 error)

func (*Model) GetHello

func (fake *Model) GetHello(arg1 protocol.DeviceID) protocol.HelloIntf

func (*Model) GetHelloArgsForCall

func (fake *Model) GetHelloArgsForCall(i int) protocol.DeviceID

func (*Model) GetHelloCallCount

func (fake *Model) GetHelloCallCount() int

func (*Model) GetHelloCalls

func (fake *Model) GetHelloCalls(stub func(protocol.DeviceID) protocol.HelloIntf)

func (*Model) GetHelloReturns

func (fake *Model) GetHelloReturns(result1 protocol.HelloIntf)

func (*Model) GetHelloReturnsOnCall

func (fake *Model) GetHelloReturnsOnCall(i int, result1 protocol.HelloIntf)

func (*Model) GetMtimeMapping added in v1.17.0

func (fake *Model) GetMtimeMapping(arg1 string, arg2 string) (fs.MtimeMapping, error)

func (*Model) GetMtimeMappingArgsForCall added in v1.17.0

func (fake *Model) GetMtimeMappingArgsForCall(i int) (string, string)

func (*Model) GetMtimeMappingCallCount added in v1.17.0

func (fake *Model) GetMtimeMappingCallCount() int

func (*Model) GetMtimeMappingCalls added in v1.17.0

func (fake *Model) GetMtimeMappingCalls(stub func(string, string) (fs.MtimeMapping, error))

func (*Model) GetMtimeMappingReturns added in v1.17.0

func (fake *Model) GetMtimeMappingReturns(result1 fs.MtimeMapping, result2 error)

func (*Model) GetMtimeMappingReturnsOnCall added in v1.17.0

func (fake *Model) GetMtimeMappingReturnsOnCall(i int, result1 fs.MtimeMapping, result2 error)

func (*Model) GlobalDirectoryTree

func (fake *Model) GlobalDirectoryTree(arg1 string, arg2 string, arg3 int, arg4 bool) ([]*model.TreeEntry, error)

func (*Model) GlobalDirectoryTreeArgsForCall

func (fake *Model) GlobalDirectoryTreeArgsForCall(i int) (string, string, int, bool)

func (*Model) GlobalDirectoryTreeCallCount

func (fake *Model) GlobalDirectoryTreeCallCount() int

func (*Model) GlobalDirectoryTreeCalls

func (fake *Model) GlobalDirectoryTreeCalls(stub func(string, string, int, bool) ([]*model.TreeEntry, error))

func (*Model) GlobalDirectoryTreeReturns

func (fake *Model) GlobalDirectoryTreeReturns(result1 []*model.TreeEntry, result2 error)

func (*Model) GlobalDirectoryTreeReturnsOnCall

func (fake *Model) GlobalDirectoryTreeReturnsOnCall(i int, result1 []*model.TreeEntry, result2 error)

func (*Model) Index

func (fake *Model) Index(arg1 protocol.DeviceID, arg2 string, arg3 []protocol.FileInfo) error

func (*Model) IndexArgsForCall

func (fake *Model) IndexArgsForCall(i int) (protocol.DeviceID, string, []protocol.FileInfo)

func (*Model) IndexCallCount

func (fake *Model) IndexCallCount() int

func (*Model) IndexCalls

func (fake *Model) IndexCalls(stub func(protocol.DeviceID, string, []protocol.FileInfo) error)

func (*Model) IndexReturns

func (fake *Model) IndexReturns(result1 error)

func (*Model) IndexReturnsOnCall

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

func (*Model) IndexUpdate

func (fake *Model) IndexUpdate(arg1 protocol.DeviceID, arg2 string, arg3 []protocol.FileInfo) error

func (*Model) IndexUpdateArgsForCall

func (fake *Model) IndexUpdateArgsForCall(i int) (protocol.DeviceID, string, []protocol.FileInfo)

func (*Model) IndexUpdateCallCount

func (fake *Model) IndexUpdateCallCount() int

func (*Model) IndexUpdateCalls

func (fake *Model) IndexUpdateCalls(stub func(protocol.DeviceID, string, []protocol.FileInfo) error)

func (*Model) IndexUpdateReturns

func (fake *Model) IndexUpdateReturns(result1 error)

func (*Model) IndexUpdateReturnsOnCall

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

func (*Model) Invocations

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

func (*Model) LoadIgnores

func (fake *Model) LoadIgnores(arg1 string) ([]string, []string, error)

func (*Model) LoadIgnoresArgsForCall

func (fake *Model) LoadIgnoresArgsForCall(i int) string

func (*Model) LoadIgnoresCallCount

func (fake *Model) LoadIgnoresCallCount() int

func (*Model) LoadIgnoresCalls

func (fake *Model) LoadIgnoresCalls(stub func(string) ([]string, []string, error))

func (*Model) LoadIgnoresReturns

func (fake *Model) LoadIgnoresReturns(result1 []string, result2 []string, result3 error)

func (*Model) LoadIgnoresReturnsOnCall

func (fake *Model) LoadIgnoresReturnsOnCall(i int, result1 []string, result2 []string, result3 error)

func (*Model) LocalChangedFolderFiles

func (fake *Model) LocalChangedFolderFiles(arg1 string, arg2 int, arg3 int) ([]db.FileInfoTruncated, error)

func (*Model) LocalChangedFolderFilesArgsForCall

func (fake *Model) LocalChangedFolderFilesArgsForCall(i int) (string, int, int)

func (*Model) LocalChangedFolderFilesCallCount

func (fake *Model) LocalChangedFolderFilesCallCount() int

func (*Model) LocalChangedFolderFilesCalls

func (fake *Model) LocalChangedFolderFilesCalls(stub func(string, int, int) ([]db.FileInfoTruncated, error))

func (*Model) LocalChangedFolderFilesReturns

func (fake *Model) LocalChangedFolderFilesReturns(result1 []db.FileInfoTruncated, result2 error)

func (*Model) LocalChangedFolderFilesReturnsOnCall

func (fake *Model) LocalChangedFolderFilesReturnsOnCall(i int, result1 []db.FileInfoTruncated, result2 error)

func (*Model) NeedFolderFiles

func (fake *Model) NeedFolderFiles(arg1 string, arg2 int, arg3 int) ([]db.FileInfoTruncated, []db.FileInfoTruncated, []db.FileInfoTruncated, error)

func (*Model) NeedFolderFilesArgsForCall

func (fake *Model) NeedFolderFilesArgsForCall(i int) (string, int, int)

func (*Model) NeedFolderFilesCallCount

func (fake *Model) NeedFolderFilesCallCount() int

func (*Model) NeedFolderFilesCalls

func (fake *Model) NeedFolderFilesCalls(stub func(string, int, int) ([]db.FileInfoTruncated, []db.FileInfoTruncated, []db.FileInfoTruncated, error))

func (*Model) NeedFolderFilesReturns

func (fake *Model) NeedFolderFilesReturns(result1 []db.FileInfoTruncated, result2 []db.FileInfoTruncated, result3 []db.FileInfoTruncated, result4 error)

func (*Model) NeedFolderFilesReturnsOnCall

func (fake *Model) NeedFolderFilesReturnsOnCall(i int, result1 []db.FileInfoTruncated, result2 []db.FileInfoTruncated, result3 []db.FileInfoTruncated, result4 error)

func (*Model) NumConnections

func (fake *Model) NumConnections() int

func (*Model) NumConnectionsCallCount

func (fake *Model) NumConnectionsCallCount() int

func (*Model) NumConnectionsCalls

func (fake *Model) NumConnectionsCalls(stub func() int)

func (*Model) NumConnectionsReturns

func (fake *Model) NumConnectionsReturns(result1 int)

func (*Model) NumConnectionsReturnsOnCall

func (fake *Model) NumConnectionsReturnsOnCall(i int, result1 int)

func (*Model) OnHello

func (fake *Model) OnHello(arg1 protocol.DeviceID, arg2 net.Addr, arg3 protocol.Hello) error

func (*Model) OnHelloArgsForCall

func (fake *Model) OnHelloArgsForCall(i int) (protocol.DeviceID, net.Addr, protocol.Hello)

func (*Model) OnHelloCallCount

func (fake *Model) OnHelloCallCount() int

func (*Model) OnHelloCalls

func (fake *Model) OnHelloCalls(stub func(protocol.DeviceID, net.Addr, protocol.Hello) error)

func (*Model) OnHelloReturns

func (fake *Model) OnHelloReturns(result1 error)

func (*Model) OnHelloReturnsOnCall

func (fake *Model) OnHelloReturnsOnCall(i int, result1 error)

func (*Model) Override

func (fake *Model) Override(arg1 string)

func (*Model) OverrideArgsForCall

func (fake *Model) OverrideArgsForCall(i int) string

func (*Model) OverrideCallCount

func (fake *Model) OverrideCallCount() int

func (*Model) OverrideCalls

func (fake *Model) OverrideCalls(stub func(string))

func (*Model) PendingDevices

func (fake *Model) PendingDevices() (map[protocol.DeviceID]db.ObservedDevice, error)

func (*Model) PendingDevicesCallCount

func (fake *Model) PendingDevicesCallCount() int

func (*Model) PendingDevicesCalls

func (fake *Model) PendingDevicesCalls(stub func() (map[protocol.DeviceID]db.ObservedDevice, error))

func (*Model) PendingDevicesReturns

func (fake *Model) PendingDevicesReturns(result1 map[protocol.DeviceID]db.ObservedDevice, result2 error)

func (*Model) PendingDevicesReturnsOnCall

func (fake *Model) PendingDevicesReturnsOnCall(i int, result1 map[protocol.DeviceID]db.ObservedDevice, result2 error)

func (*Model) PendingFolders

func (fake *Model) PendingFolders(arg1 protocol.DeviceID) (map[string]db.PendingFolder, error)

func (*Model) PendingFoldersArgsForCall

func (fake *Model) PendingFoldersArgsForCall(i int) protocol.DeviceID

func (*Model) PendingFoldersCallCount

func (fake *Model) PendingFoldersCallCount() int

func (*Model) PendingFoldersCalls

func (fake *Model) PendingFoldersCalls(stub func(protocol.DeviceID) (map[string]db.PendingFolder, error))

func (*Model) PendingFoldersReturns

func (fake *Model) PendingFoldersReturns(result1 map[string]db.PendingFolder, result2 error)

func (*Model) PendingFoldersReturnsOnCall

func (fake *Model) PendingFoldersReturnsOnCall(i int, result1 map[string]db.PendingFolder, result2 error)

func (*Model) RemoteNeedFolderFiles

func (fake *Model) RemoteNeedFolderFiles(arg1 string, arg2 protocol.DeviceID, arg3 int, arg4 int) ([]db.FileInfoTruncated, error)

func (*Model) RemoteNeedFolderFilesArgsForCall

func (fake *Model) RemoteNeedFolderFilesArgsForCall(i int) (string, protocol.DeviceID, int, int)

func (*Model) RemoteNeedFolderFilesCallCount

func (fake *Model) RemoteNeedFolderFilesCallCount() int

func (*Model) RemoteNeedFolderFilesCalls

func (fake *Model) RemoteNeedFolderFilesCalls(stub func(string, protocol.DeviceID, int, int) ([]db.FileInfoTruncated, error))

func (*Model) RemoteNeedFolderFilesReturns

func (fake *Model) RemoteNeedFolderFilesReturns(result1 []db.FileInfoTruncated, result2 error)

func (*Model) RemoteNeedFolderFilesReturnsOnCall

func (fake *Model) RemoteNeedFolderFilesReturnsOnCall(i int, result1 []db.FileInfoTruncated, result2 error)

func (*Model) Request

func (fake *Model) Request(arg1 protocol.DeviceID, arg2 string, arg3 string, arg4 int32, arg5 int32, arg6 int64, arg7 []byte, arg8 uint32, arg9 bool) (protocol.RequestResponse, error)

func (*Model) RequestArgsForCall

func (fake *Model) RequestArgsForCall(i int) (protocol.DeviceID, string, string, int32, int32, int64, []byte, uint32, bool)

func (*Model) RequestCallCount

func (fake *Model) RequestCallCount() int

func (*Model) RequestCalls

func (fake *Model) RequestCalls(stub func(protocol.DeviceID, string, string, int32, int32, int64, []byte, uint32, bool) (protocol.RequestResponse, error))

func (*Model) RequestReturns

func (fake *Model) RequestReturns(result1 protocol.RequestResponse, result2 error)

func (*Model) RequestReturnsOnCall

func (fake *Model) RequestReturnsOnCall(i int, result1 protocol.RequestResponse, result2 error)

func (*Model) ResetFolder

func (fake *Model) ResetFolder(arg1 string) error

func (*Model) ResetFolderArgsForCall

func (fake *Model) ResetFolderArgsForCall(i int) string

func (*Model) ResetFolderCallCount

func (fake *Model) ResetFolderCallCount() int

func (*Model) ResetFolderCalls

func (fake *Model) ResetFolderCalls(stub func(string) error)

func (*Model) ResetFolderReturns added in v1.18.3

func (fake *Model) ResetFolderReturns(result1 error)

func (*Model) ResetFolderReturnsOnCall added in v1.18.3

func (fake *Model) ResetFolderReturnsOnCall(i int, result1 error)

func (*Model) RestoreFolderVersions

func (fake *Model) RestoreFolderVersions(arg1 string, arg2 map[string]time.Time) (map[string]error, error)

func (*Model) RestoreFolderVersionsArgsForCall

func (fake *Model) RestoreFolderVersionsArgsForCall(i int) (string, map[string]time.Time)

func (*Model) RestoreFolderVersionsCallCount

func (fake *Model) RestoreFolderVersionsCallCount() int

func (*Model) RestoreFolderVersionsCalls

func (fake *Model) RestoreFolderVersionsCalls(stub func(string, map[string]time.Time) (map[string]error, error))

func (*Model) RestoreFolderVersionsReturns

func (fake *Model) RestoreFolderVersionsReturns(result1 map[string]error, result2 error)

func (*Model) RestoreFolderVersionsReturnsOnCall

func (fake *Model) RestoreFolderVersionsReturnsOnCall(i int, result1 map[string]error, result2 error)

func (*Model) Revert

func (fake *Model) Revert(arg1 string)

func (*Model) RevertArgsForCall

func (fake *Model) RevertArgsForCall(i int) string

func (*Model) RevertCallCount

func (fake *Model) RevertCallCount() int

func (*Model) RevertCalls

func (fake *Model) RevertCalls(stub func(string))

func (*Model) ScanFolder

func (fake *Model) ScanFolder(arg1 string) error

func (*Model) ScanFolderArgsForCall

func (fake *Model) ScanFolderArgsForCall(i int) string

func (*Model) ScanFolderCallCount

func (fake *Model) ScanFolderCallCount() int

func (*Model) ScanFolderCalls

func (fake *Model) ScanFolderCalls(stub func(string) error)

func (*Model) ScanFolderReturns

func (fake *Model) ScanFolderReturns(result1 error)

func (*Model) ScanFolderReturnsOnCall

func (fake *Model) ScanFolderReturnsOnCall(i int, result1 error)

func (*Model) ScanFolderSubdirs

func (fake *Model) ScanFolderSubdirs(arg1 string, arg2 []string) error

func (*Model) ScanFolderSubdirsArgsForCall

func (fake *Model) ScanFolderSubdirsArgsForCall(i int) (string, []string)

func (*Model) ScanFolderSubdirsCallCount

func (fake *Model) ScanFolderSubdirsCallCount() int

func (*Model) ScanFolderSubdirsCalls

func (fake *Model) ScanFolderSubdirsCalls(stub func(string, []string) error)

func (*Model) ScanFolderSubdirsReturns

func (fake *Model) ScanFolderSubdirsReturns(result1 error)

func (*Model) ScanFolderSubdirsReturnsOnCall

func (fake *Model) ScanFolderSubdirsReturnsOnCall(i int, result1 error)

func (*Model) ScanFolders

func (fake *Model) ScanFolders() map[string]error

func (*Model) ScanFoldersCallCount

func (fake *Model) ScanFoldersCallCount() int

func (*Model) ScanFoldersCalls

func (fake *Model) ScanFoldersCalls(stub func() map[string]error)

func (*Model) ScanFoldersReturns

func (fake *Model) ScanFoldersReturns(result1 map[string]error)

func (*Model) ScanFoldersReturnsOnCall

func (fake *Model) ScanFoldersReturnsOnCall(i int, result1 map[string]error)

func (*Model) Serve

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

func (*Model) ServeArgsForCall

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

func (*Model) ServeCallCount

func (fake *Model) ServeCallCount() int

func (*Model) ServeCalls

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

func (*Model) ServeReturns

func (fake *Model) ServeReturns(result1 error)

func (*Model) ServeReturnsOnCall

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

func (*Model) SetIgnores

func (fake *Model) SetIgnores(arg1 string, arg2 []string) error

func (*Model) SetIgnoresArgsForCall

func (fake *Model) SetIgnoresArgsForCall(i int) (string, []string)

func (*Model) SetIgnoresCallCount

func (fake *Model) SetIgnoresCallCount() int

func (*Model) SetIgnoresCalls

func (fake *Model) SetIgnoresCalls(stub func(string, []string) error)

func (*Model) SetIgnoresReturns

func (fake *Model) SetIgnoresReturns(result1 error)

func (*Model) SetIgnoresReturnsOnCall

func (fake *Model) SetIgnoresReturnsOnCall(i int, result1 error)

func (*Model) StartDeadlockDetector

func (fake *Model) StartDeadlockDetector(arg1 time.Duration)

func (*Model) StartDeadlockDetectorArgsForCall

func (fake *Model) StartDeadlockDetectorArgsForCall(i int) time.Duration

func (*Model) StartDeadlockDetectorCallCount

func (fake *Model) StartDeadlockDetectorCallCount() int

func (*Model) StartDeadlockDetectorCalls

func (fake *Model) StartDeadlockDetectorCalls(stub func(time.Duration))

func (*Model) State

func (fake *Model) State(arg1 string) (string, time.Time, error)

func (*Model) StateArgsForCall

func (fake *Model) StateArgsForCall(i int) string

func (*Model) StateCallCount

func (fake *Model) StateCallCount() int

func (*Model) StateCalls

func (fake *Model) StateCalls(stub func(string) (string, time.Time, error))

func (*Model) StateReturns

func (fake *Model) StateReturns(result1 string, result2 time.Time, result3 error)

func (*Model) StateReturnsOnCall

func (fake *Model) StateReturnsOnCall(i int, result1 string, result2 time.Time, result3 error)

func (*Model) UsageReportingStats

func (fake *Model) UsageReportingStats(arg1 *contract.Report, arg2 int, arg3 bool)

func (*Model) UsageReportingStatsArgsForCall

func (fake *Model) UsageReportingStatsArgsForCall(i int) (*contract.Report, int, bool)

func (*Model) UsageReportingStatsCallCount

func (fake *Model) UsageReportingStatsCallCount() int

func (*Model) UsageReportingStatsCalls

func (fake *Model) UsageReportingStatsCalls(stub func(*contract.Report, int, bool))

func (*Model) WatchError

func (fake *Model) WatchError(arg1 string) error

func (*Model) WatchErrorArgsForCall

func (fake *Model) WatchErrorArgsForCall(i int) string

func (*Model) WatchErrorCallCount

func (fake *Model) WatchErrorCallCount() int

func (*Model) WatchErrorCalls

func (fake *Model) WatchErrorCalls(stub func(string) error)

func (*Model) WatchErrorReturns

func (fake *Model) WatchErrorReturns(result1 error)

func (*Model) WatchErrorReturnsOnCall

func (fake *Model) WatchErrorReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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