mock

package
v0.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMock

type ClientMock struct {
	mock.Mock
}

ClientMock is an autogenerated mock type for the Client type

func NewClientMock

func NewClientMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientMock

NewClientMock creates a new instance of ClientMock. 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 (*ClientMock) CreateMany

func (_m *ClientMock) CreateMany(ctx context.Context, files []*s3.FileData) map[string]*s3.CreateDto

CreateMany provides a mock function with given fields: ctx, files

func (*ClientMock) CreateOne

func (_m *ClientMock) CreateOne(ctx context.Context, file *s3.FileData) *s3.CreateDto

CreateOne provides a mock function with given fields: ctx, file

func (*ClientMock) DeleteMany

func (_m *ClientMock) DeleteMany(ctx context.Context, objectIDs []string) map[string]error

DeleteMany provides a mock function with given fields: ctx, objectIDs

func (*ClientMock) DeleteOne

func (_m *ClientMock) DeleteOne(ctx context.Context, objectID string) error

DeleteOne provides a mock function with given fields: ctx, objectID

func (*ClientMock) EXPECT

func (_m *ClientMock) EXPECT() *ClientMock_Expecter

func (*ClientMock) GetMany

func (_m *ClientMock) GetMany(ctx context.Context, objectIDs []string) map[string]*s3.GetDto

GetMany provides a mock function with given fields: ctx, objectIDs

func (*ClientMock) GetOne

func (_m *ClientMock) GetOne(ctx context.Context, objectID string) *s3.GetDto

GetOne provides a mock function with given fields: ctx, objectID

type ClientMock_CreateMany_Call

type ClientMock_CreateMany_Call struct {
	*mock.Call
}

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

func (*ClientMock_CreateMany_Call) Return

func (*ClientMock_CreateMany_Call) Run

func (*ClientMock_CreateMany_Call) RunAndReturn

type ClientMock_CreateOne_Call

type ClientMock_CreateOne_Call struct {
	*mock.Call
}

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

func (*ClientMock_CreateOne_Call) Return

func (*ClientMock_CreateOne_Call) Run

func (*ClientMock_CreateOne_Call) RunAndReturn

type ClientMock_DeleteMany_Call

type ClientMock_DeleteMany_Call struct {
	*mock.Call
}

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

func (*ClientMock_DeleteMany_Call) Return

func (*ClientMock_DeleteMany_Call) Run

func (_c *ClientMock_DeleteMany_Call) Run(run func(ctx context.Context, objectIDs []string)) *ClientMock_DeleteMany_Call

func (*ClientMock_DeleteMany_Call) RunAndReturn

type ClientMock_DeleteOne_Call

type ClientMock_DeleteOne_Call struct {
	*mock.Call
}

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

func (*ClientMock_DeleteOne_Call) Return

func (*ClientMock_DeleteOne_Call) Run

func (_c *ClientMock_DeleteOne_Call) Run(run func(ctx context.Context, objectID string)) *ClientMock_DeleteOne_Call

func (*ClientMock_DeleteOne_Call) RunAndReturn

type ClientMock_Expecter

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

func (*ClientMock_Expecter) CreateMany

func (_e *ClientMock_Expecter) CreateMany(ctx interface{}, files interface{}) *ClientMock_CreateMany_Call

CreateMany is a helper method to define mock.On call

  • ctx context.Context
  • files []*s3.FileData

func (*ClientMock_Expecter) CreateOne

func (_e *ClientMock_Expecter) CreateOne(ctx interface{}, file interface{}) *ClientMock_CreateOne_Call

CreateOne is a helper method to define mock.On call

  • ctx context.Context
  • file *s3.FileData

func (*ClientMock_Expecter) DeleteMany

func (_e *ClientMock_Expecter) DeleteMany(ctx interface{}, objectIDs interface{}) *ClientMock_DeleteMany_Call

DeleteMany is a helper method to define mock.On call

  • ctx context.Context
  • objectIDs []string

func (*ClientMock_Expecter) DeleteOne

func (_e *ClientMock_Expecter) DeleteOne(ctx interface{}, objectID interface{}) *ClientMock_DeleteOne_Call

DeleteOne is a helper method to define mock.On call

  • ctx context.Context
  • objectID string

func (*ClientMock_Expecter) GetMany

func (_e *ClientMock_Expecter) GetMany(ctx interface{}, objectIDs interface{}) *ClientMock_GetMany_Call

GetMany is a helper method to define mock.On call

  • ctx context.Context
  • objectIDs []string

func (*ClientMock_Expecter) GetOne

func (_e *ClientMock_Expecter) GetOne(ctx interface{}, objectID interface{}) *ClientMock_GetOne_Call

GetOne is a helper method to define mock.On call

  • ctx context.Context
  • objectID string

type ClientMock_GetMany_Call

type ClientMock_GetMany_Call struct {
	*mock.Call
}

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

func (*ClientMock_GetMany_Call) Return

func (*ClientMock_GetMany_Call) Run

func (_c *ClientMock_GetMany_Call) Run(run func(ctx context.Context, objectIDs []string)) *ClientMock_GetMany_Call

func (*ClientMock_GetMany_Call) RunAndReturn

type ClientMock_GetOne_Call

type ClientMock_GetOne_Call struct {
	*mock.Call
}

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

func (*ClientMock_GetOne_Call) Return

func (*ClientMock_GetOne_Call) Run

func (_c *ClientMock_GetOne_Call) Run(run func(ctx context.Context, objectID string)) *ClientMock_GetOne_Call

func (*ClientMock_GetOne_Call) RunAndReturn

Jump to

Keyboard shortcuts

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