mocks

package
v1.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectorService

type ConnectorService struct {
	mock.Mock
}

ConnectorService is an autogenerated mock type for the ConnectorService type

func NewConnectorService

func NewConnectorService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConnectorService

NewConnectorService creates a new instance of ConnectorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConnectorService) EXPECT

func (*ConnectorService) GetContentConnector

func (_m *ConnectorService) GetContentConnector() connector.ContentConnectorService

GetContentConnector provides a mock function with no fields

func (*ConnectorService) GetFileConnector

func (_m *ConnectorService) GetFileConnector() connector.FileConnectorService

GetFileConnector provides a mock function with no fields

type ConnectorService_Expecter

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

func (*ConnectorService_Expecter) GetContentConnector

GetContentConnector is a helper method to define mock.On call

func (*ConnectorService_Expecter) GetFileConnector

GetFileConnector is a helper method to define mock.On call

type ConnectorService_GetContentConnector_Call

type ConnectorService_GetContentConnector_Call struct {
	*mock.Call
}

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

func (*ConnectorService_GetContentConnector_Call) Run

func (*ConnectorService_GetContentConnector_Call) RunAndReturn

type ConnectorService_GetFileConnector_Call

type ConnectorService_GetFileConnector_Call struct {
	*mock.Call
}

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

func (*ConnectorService_GetFileConnector_Call) Return

func (*ConnectorService_GetFileConnector_Call) Run

func (*ConnectorService_GetFileConnector_Call) RunAndReturn

type ContentConnectorService

type ContentConnectorService struct {
	mock.Mock
}

ContentConnectorService is an autogenerated mock type for the ContentConnectorService type

func NewContentConnectorService

func NewContentConnectorService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContentConnectorService

NewContentConnectorService creates a new instance of ContentConnectorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ContentConnectorService) EXPECT

func (*ContentConnectorService) GetFile

GetFile provides a mock function with given fields: ctx, w

func (*ContentConnectorService) PutFile

func (_m *ContentConnectorService) PutFile(ctx context.Context, stream io.Reader, streamLength int64, lockID string) (*connector.ConnectorResponse, error)

PutFile provides a mock function with given fields: ctx, stream, streamLength, lockID

type ContentConnectorService_Expecter

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

func (*ContentConnectorService_Expecter) GetFile

func (_e *ContentConnectorService_Expecter) GetFile(ctx interface{}, w interface{}) *ContentConnectorService_GetFile_Call

GetFile is a helper method to define mock.On call

  • ctx context.Context
  • w http.ResponseWriter

func (*ContentConnectorService_Expecter) PutFile

func (_e *ContentConnectorService_Expecter) PutFile(ctx interface{}, stream interface{}, streamLength interface{}, lockID interface{}) *ContentConnectorService_PutFile_Call

PutFile is a helper method to define mock.On call

  • ctx context.Context
  • stream io.Reader
  • streamLength int64
  • lockID string

type ContentConnectorService_GetFile_Call

type ContentConnectorService_GetFile_Call struct {
	*mock.Call
}

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

func (*ContentConnectorService_GetFile_Call) Return

func (*ContentConnectorService_GetFile_Call) Run

func (*ContentConnectorService_GetFile_Call) RunAndReturn

type ContentConnectorService_PutFile_Call

type ContentConnectorService_PutFile_Call struct {
	*mock.Call
}

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

func (*ContentConnectorService_PutFile_Call) Return

func (*ContentConnectorService_PutFile_Call) Run

func (_c *ContentConnectorService_PutFile_Call) Run(run func(ctx context.Context, stream io.Reader, streamLength int64, lockID string)) *ContentConnectorService_PutFile_Call

func (*ContentConnectorService_PutFile_Call) RunAndReturn

type FileConnectorService

type FileConnectorService struct {
	mock.Mock
}

FileConnectorService is an autogenerated mock type for the FileConnectorService type

func NewFileConnectorService

func NewFileConnectorService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileConnectorService

NewFileConnectorService creates a new instance of FileConnectorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FileConnectorService) CheckFileInfo

CheckFileInfo provides a mock function with given fields: ctx

func (*FileConnectorService) DeleteFile

DeleteFile provides a mock function with given fields: ctx, lockID

func (*FileConnectorService) EXPECT

func (*FileConnectorService) GetLock

GetLock provides a mock function with given fields: ctx

func (*FileConnectorService) Lock

func (_m *FileConnectorService) Lock(ctx context.Context, lockID string, oldLockID string) (*connector.ConnectorResponse, error)

Lock provides a mock function with given fields: ctx, lockID, oldLockID

func (*FileConnectorService) PutRelativeFileRelative

func (_m *FileConnectorService) PutRelativeFileRelative(ctx context.Context, ccs connector.ContentConnectorService, stream io.Reader, streamLength int64, target string) (*connector.ConnectorResponse, error)

PutRelativeFileRelative provides a mock function with given fields: ctx, ccs, stream, streamLength, target

func (*FileConnectorService) PutRelativeFileSuggested

func (_m *FileConnectorService) PutRelativeFileSuggested(ctx context.Context, ccs connector.ContentConnectorService, stream io.Reader, streamLength int64, target string) (*connector.ConnectorResponse, error)

PutRelativeFileSuggested provides a mock function with given fields: ctx, ccs, stream, streamLength, target

func (*FileConnectorService) RefreshLock

func (_m *FileConnectorService) RefreshLock(ctx context.Context, lockID string) (*connector.ConnectorResponse, error)

RefreshLock provides a mock function with given fields: ctx, lockID

func (*FileConnectorService) RenameFile

func (_m *FileConnectorService) RenameFile(ctx context.Context, lockID string, target string) (*connector.ConnectorResponse, error)

RenameFile provides a mock function with given fields: ctx, lockID, target

func (*FileConnectorService) UnLock

UnLock provides a mock function with given fields: ctx, lockID

type FileConnectorService_CheckFileInfo_Call

type FileConnectorService_CheckFileInfo_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_CheckFileInfo_Call) Return

func (*FileConnectorService_CheckFileInfo_Call) Run

func (*FileConnectorService_CheckFileInfo_Call) RunAndReturn

type FileConnectorService_DeleteFile_Call

type FileConnectorService_DeleteFile_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_DeleteFile_Call) Return

func (*FileConnectorService_DeleteFile_Call) Run

func (*FileConnectorService_DeleteFile_Call) RunAndReturn

type FileConnectorService_Expecter

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

func (*FileConnectorService_Expecter) CheckFileInfo

func (_e *FileConnectorService_Expecter) CheckFileInfo(ctx interface{}) *FileConnectorService_CheckFileInfo_Call

CheckFileInfo is a helper method to define mock.On call

  • ctx context.Context

func (*FileConnectorService_Expecter) DeleteFile

func (_e *FileConnectorService_Expecter) DeleteFile(ctx interface{}, lockID interface{}) *FileConnectorService_DeleteFile_Call

DeleteFile is a helper method to define mock.On call

  • ctx context.Context
  • lockID string

func (*FileConnectorService_Expecter) GetLock

GetLock is a helper method to define mock.On call

  • ctx context.Context

func (*FileConnectorService_Expecter) Lock

func (_e *FileConnectorService_Expecter) Lock(ctx interface{}, lockID interface{}, oldLockID interface{}) *FileConnectorService_Lock_Call

Lock is a helper method to define mock.On call

  • ctx context.Context
  • lockID string
  • oldLockID string

func (*FileConnectorService_Expecter) PutRelativeFileRelative

func (_e *FileConnectorService_Expecter) PutRelativeFileRelative(ctx interface{}, ccs interface{}, stream interface{}, streamLength interface{}, target interface{}) *FileConnectorService_PutRelativeFileRelative_Call

PutRelativeFileRelative is a helper method to define mock.On call

  • ctx context.Context
  • ccs connector.ContentConnectorService
  • stream io.Reader
  • streamLength int64
  • target string

func (*FileConnectorService_Expecter) PutRelativeFileSuggested

func (_e *FileConnectorService_Expecter) PutRelativeFileSuggested(ctx interface{}, ccs interface{}, stream interface{}, streamLength interface{}, target interface{}) *FileConnectorService_PutRelativeFileSuggested_Call

PutRelativeFileSuggested is a helper method to define mock.On call

  • ctx context.Context
  • ccs connector.ContentConnectorService
  • stream io.Reader
  • streamLength int64
  • target string

func (*FileConnectorService_Expecter) RefreshLock

func (_e *FileConnectorService_Expecter) RefreshLock(ctx interface{}, lockID interface{}) *FileConnectorService_RefreshLock_Call

RefreshLock is a helper method to define mock.On call

  • ctx context.Context
  • lockID string

func (*FileConnectorService_Expecter) RenameFile

func (_e *FileConnectorService_Expecter) RenameFile(ctx interface{}, lockID interface{}, target interface{}) *FileConnectorService_RenameFile_Call

RenameFile is a helper method to define mock.On call

  • ctx context.Context
  • lockID string
  • target string

func (*FileConnectorService_Expecter) UnLock

func (_e *FileConnectorService_Expecter) UnLock(ctx interface{}, lockID interface{}) *FileConnectorService_UnLock_Call

UnLock is a helper method to define mock.On call

  • ctx context.Context
  • lockID string

type FileConnectorService_GetLock_Call

type FileConnectorService_GetLock_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_GetLock_Call) Return

func (*FileConnectorService_GetLock_Call) Run

func (*FileConnectorService_GetLock_Call) RunAndReturn

type FileConnectorService_Lock_Call

type FileConnectorService_Lock_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_Lock_Call) Return

func (*FileConnectorService_Lock_Call) Run

func (*FileConnectorService_Lock_Call) RunAndReturn

type FileConnectorService_PutRelativeFileRelative_Call

type FileConnectorService_PutRelativeFileRelative_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_PutRelativeFileRelative_Call) Return

func (*FileConnectorService_PutRelativeFileRelative_Call) Run

type FileConnectorService_PutRelativeFileSuggested_Call

type FileConnectorService_PutRelativeFileSuggested_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_PutRelativeFileSuggested_Call) Return

func (*FileConnectorService_PutRelativeFileSuggested_Call) Run

type FileConnectorService_RefreshLock_Call

type FileConnectorService_RefreshLock_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_RefreshLock_Call) Return

func (*FileConnectorService_RefreshLock_Call) Run

func (*FileConnectorService_RefreshLock_Call) RunAndReturn

type FileConnectorService_RenameFile_Call

type FileConnectorService_RenameFile_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_RenameFile_Call) Return

func (*FileConnectorService_RenameFile_Call) Run

func (*FileConnectorService_RenameFile_Call) RunAndReturn

type FileConnectorService_UnLock_Call

type FileConnectorService_UnLock_Call struct {
	*mock.Call
}

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

func (*FileConnectorService_UnLock_Call) Return

func (*FileConnectorService_UnLock_Call) Run

func (*FileConnectorService_UnLock_Call) RunAndReturn

type LockParser

type LockParser struct {
	mock.Mock
}

LockParser is an autogenerated mock type for the LockParser type

func NewLockParser

func NewLockParser(t interface {
	mock.TestingT
	Cleanup(func())
}) *LockParser

NewLockParser creates a new instance of LockParser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LockParser) EXPECT

func (_m *LockParser) EXPECT() *LockParser_Expecter

func (*LockParser) ParseLock

func (_m *LockParser) ParseLock(id string) string

ParseLock provides a mock function with given fields: id

type LockParser_Expecter

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

func (*LockParser_Expecter) ParseLock

func (_e *LockParser_Expecter) ParseLock(id interface{}) *LockParser_ParseLock_Call

ParseLock is a helper method to define mock.On call

  • id string

type LockParser_ParseLock_Call

type LockParser_ParseLock_Call struct {
	*mock.Call
}

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

func (*LockParser_ParseLock_Call) Return

func (*LockParser_ParseLock_Call) Run

func (*LockParser_ParseLock_Call) RunAndReturn

type Selectable

type Selectable[T interface{}] struct {
	mock.Mock
}

Selectable is an autogenerated mock type for the Selectable type

func NewSelectable

func NewSelectable[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *Selectable[T]

NewSelectable creates a new instance of Selectable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Selectable[T]) EXPECT

func (_m *Selectable[T]) EXPECT() *Selectable_Expecter[T]

func (*Selectable[T]) Next

func (_m *Selectable[T]) Next(opts ...pool.Option) (T, error)

Next provides a mock function with given fields: opts

type Selectable_Expecter

type Selectable_Expecter[T interface{}] struct {
	// contains filtered or unexported fields
}

func (*Selectable_Expecter[T]) Next

func (_e *Selectable_Expecter[T]) Next(opts ...interface{}) *Selectable_Next_Call[T]

Next is a helper method to define mock.On call

  • opts ...pool.Option

type Selectable_Next_Call

type Selectable_Next_Call[T interface{}] struct {
	*mock.Call
}

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

func (*Selectable_Next_Call[T]) Return

func (_c *Selectable_Next_Call[T]) Return(_a0 T, _a1 error) *Selectable_Next_Call[T]

func (*Selectable_Next_Call[T]) Run

func (_c *Selectable_Next_Call[T]) Run(run func(opts ...pool.Option)) *Selectable_Next_Call[T]

func (*Selectable_Next_Call[T]) RunAndReturn

func (_c *Selectable_Next_Call[T]) RunAndReturn(run func(...pool.Option) (T, error)) *Selectable_Next_Call[T]

Jump to

Keyboard shortcuts

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