mocks

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBindFunc

type MockBindFunc struct {
	mock.Mock
}

MockBindFunc is an autogenerated mock type for the BindFunc type

func NewMockBindFunc

func NewMockBindFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBindFunc

NewMockBindFunc creates a new instance of MockBindFunc. 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 (*MockBindFunc) EXPECT

func (_m *MockBindFunc) EXPECT() *MockBindFunc_Expecter

func (*MockBindFunc) Execute

func (_m *MockBindFunc) Execute(_a0 echox.Context, _a1 interface{}) error

Execute provides a mock function with given fields: _a0, _a1

type MockBindFunc_Execute_Call

type MockBindFunc_Execute_Call struct {
	*mock.Call
}

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

func (*MockBindFunc_Execute_Call) Return

func (*MockBindFunc_Execute_Call) Run

func (_c *MockBindFunc_Execute_Call) Run(run func(_a0 echox.Context, _a1 interface{})) *MockBindFunc_Execute_Call

func (*MockBindFunc_Execute_Call) RunAndReturn

func (_c *MockBindFunc_Execute_Call) RunAndReturn(run func(echox.Context, interface{}) error) *MockBindFunc_Execute_Call

type MockBindFunc_Expecter

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

func (*MockBindFunc_Expecter) Execute

func (_e *MockBindFunc_Expecter) Execute(_a0 interface{}, _a1 interface{}) *MockBindFunc_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 echox.Context
  • _a1 interface{}

type MockErrResponseHandler

type MockErrResponseHandler struct {
	mock.Mock
}

MockErrResponseHandler is an autogenerated mock type for the ErrResponseHandler type

func NewMockErrResponseHandler

func NewMockErrResponseHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockErrResponseHandler

NewMockErrResponseHandler creates a new instance of MockErrResponseHandler. 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 (*MockErrResponseHandler) EXPECT

func (*MockErrResponseHandler) Execute

func (_m *MockErrResponseHandler) Execute(err error, statusCode int) http.HandlerFunc

Execute provides a mock function with given fields: err, statusCode

type MockErrResponseHandler_Execute_Call

type MockErrResponseHandler_Execute_Call struct {
	*mock.Call
}

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

func (*MockErrResponseHandler_Execute_Call) Return

func (*MockErrResponseHandler_Execute_Call) Run

func (*MockErrResponseHandler_Execute_Call) RunAndReturn

type MockErrResponseHandler_Expecter

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

func (*MockErrResponseHandler_Expecter) Execute

func (_e *MockErrResponseHandler_Expecter) Execute(err interface{}, statusCode interface{}) *MockErrResponseHandler_Execute_Call

Execute is a helper method to define mock.On call

  • err error
  • statusCode int

type MockNameGeneratorFunc

type MockNameGeneratorFunc struct {
	mock.Mock
}

MockNameGeneratorFunc is an autogenerated mock type for the NameGeneratorFunc type

func NewMockNameGeneratorFunc

func NewMockNameGeneratorFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockNameGeneratorFunc

NewMockNameGeneratorFunc creates a new instance of MockNameGeneratorFunc. 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 (*MockNameGeneratorFunc) EXPECT

func (*MockNameGeneratorFunc) Execute

func (_m *MockNameGeneratorFunc) Execute(s string) string

Execute provides a mock function with given fields: s

type MockNameGeneratorFunc_Execute_Call

type MockNameGeneratorFunc_Execute_Call struct {
	*mock.Call
}

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

func (*MockNameGeneratorFunc_Execute_Call) Return

func (*MockNameGeneratorFunc_Execute_Call) Run

func (*MockNameGeneratorFunc_Execute_Call) RunAndReturn

type MockNameGeneratorFunc_Expecter

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

func (*MockNameGeneratorFunc_Expecter) Execute

Execute is a helper method to define mock.On call

  • s string

type MockOption

type MockOption struct {
	mock.Mock
}

MockOption is an autogenerated mock type for the Option type

func NewMockOption

func NewMockOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockOption

NewMockOption creates a new instance of MockOption. 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 (*MockOption) EXPECT

func (_m *MockOption) EXPECT() *MockOption_Expecter

func (*MockOption) Execute

func (_m *MockOption) Execute(_a0 *objects.Objects)

Execute provides a mock function with given fields: _a0

type MockOption_Execute_Call

type MockOption_Execute_Call struct {
	*mock.Call
}

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

func (*MockOption_Execute_Call) Return

func (*MockOption_Execute_Call) Run

func (*MockOption_Execute_Call) RunAndReturn

func (_c *MockOption_Execute_Call) RunAndReturn(run func(*objects.Objects)) *MockOption_Execute_Call

type MockOption_Expecter

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

func (*MockOption_Expecter) Execute

func (_e *MockOption_Expecter) Execute(_a0 interface{}) *MockOption_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *objects.Objects

type MockSkipperFunc

type MockSkipperFunc struct {
	mock.Mock
}

MockSkipperFunc is an autogenerated mock type for the SkipperFunc type

func NewMockSkipperFunc

func NewMockSkipperFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSkipperFunc

NewMockSkipperFunc creates a new instance of MockSkipperFunc. 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 (*MockSkipperFunc) EXPECT

func (*MockSkipperFunc) Execute

func (_m *MockSkipperFunc) Execute(r *http.Request) bool

Execute provides a mock function with given fields: r

type MockSkipperFunc_Execute_Call

type MockSkipperFunc_Execute_Call struct {
	*mock.Call
}

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

func (*MockSkipperFunc_Execute_Call) Return

func (*MockSkipperFunc_Execute_Call) Run

func (*MockSkipperFunc_Execute_Call) RunAndReturn

type MockSkipperFunc_Expecter

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

func (*MockSkipperFunc_Expecter) Execute

func (_e *MockSkipperFunc_Expecter) Execute(r interface{}) *MockSkipperFunc_Execute_Call

Execute is a helper method to define mock.On call

  • r *http.Request

type MockStorage

type MockStorage struct {
	mock.Mock
}

MockStorage is an autogenerated mock type for the Storage type

func NewMockStorage

func NewMockStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStorage

NewMockStorage creates a new instance of MockStorage. 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 (*MockStorage) Close

func (_m *MockStorage) Close() error

Close provides a mock function with no fields

func (*MockStorage) Download

Download provides a mock function with given fields: _a0, _a1

func (*MockStorage) EXPECT

func (_m *MockStorage) EXPECT() *MockStorage_Expecter

func (*MockStorage) GetPresignedURL

func (_m *MockStorage) GetPresignedURL(_a0 context.Context, _a1 string, _a2 time.Duration) (string, error)

GetPresignedURL provides a mock function with given fields: _a0, _a1, _a2

func (*MockStorage) GetScheme

func (_m *MockStorage) GetScheme() *string

GetScheme provides a mock function with no fields

func (*MockStorage) ListBuckets added in v0.3.1

func (_m *MockStorage) ListBuckets() ([]string, error)

ListBuckets provides a mock function with no fields

func (*MockStorage) ManagerUpload

func (_m *MockStorage) ManagerUpload(_a0 context.Context, _a1 [][]byte) error

ManagerUpload provides a mock function with given fields: _a0, _a1

func (*MockStorage) Upload

Upload provides a mock function with given fields: _a0, _a1, _a2

type MockStorage_Close_Call

type MockStorage_Close_Call struct {
	*mock.Call
}

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

func (*MockStorage_Close_Call) Return

func (*MockStorage_Close_Call) Run

func (_c *MockStorage_Close_Call) Run(run func()) *MockStorage_Close_Call

func (*MockStorage_Close_Call) RunAndReturn

func (_c *MockStorage_Close_Call) RunAndReturn(run func() error) *MockStorage_Close_Call

type MockStorage_Download_Call

type MockStorage_Download_Call struct {
	*mock.Call
}

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

func (*MockStorage_Download_Call) Return

func (*MockStorage_Download_Call) Run

type MockStorage_Expecter

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

func (*MockStorage_Expecter) Close

Close is a helper method to define mock.On call

func (*MockStorage_Expecter) Download

func (_e *MockStorage_Expecter) Download(_a0 interface{}, _a1 interface{}) *MockStorage_Download_Call

Download is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *objects.DownloadFileOptions

func (*MockStorage_Expecter) GetPresignedURL

func (_e *MockStorage_Expecter) GetPresignedURL(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockStorage_GetPresignedURL_Call

GetPresignedURL is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 time.Duration

func (*MockStorage_Expecter) GetScheme

GetScheme is a helper method to define mock.On call

func (*MockStorage_Expecter) ListBuckets added in v0.3.1

ListBuckets is a helper method to define mock.On call

func (*MockStorage_Expecter) ManagerUpload

func (_e *MockStorage_Expecter) ManagerUpload(_a0 interface{}, _a1 interface{}) *MockStorage_ManagerUpload_Call

ManagerUpload is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 [][]byte

func (*MockStorage_Expecter) Upload

func (_e *MockStorage_Expecter) Upload(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockStorage_Upload_Call

Upload is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 io.Reader
  • _a2 *objects.UploadFileOptions

type MockStorage_GetPresignedURL_Call

type MockStorage_GetPresignedURL_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetPresignedURL_Call) Return

func (*MockStorage_GetPresignedURL_Call) Run

func (*MockStorage_GetPresignedURL_Call) RunAndReturn

type MockStorage_GetScheme_Call

type MockStorage_GetScheme_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetScheme_Call) Return

func (*MockStorage_GetScheme_Call) Run

func (*MockStorage_GetScheme_Call) RunAndReturn

func (_c *MockStorage_GetScheme_Call) RunAndReturn(run func() *string) *MockStorage_GetScheme_Call

type MockStorage_ListBuckets_Call added in v0.3.1

type MockStorage_ListBuckets_Call struct {
	*mock.Call
}

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

func (*MockStorage_ListBuckets_Call) Return added in v0.3.1

func (*MockStorage_ListBuckets_Call) Run added in v0.3.1

func (*MockStorage_ListBuckets_Call) RunAndReturn added in v0.3.1

func (_c *MockStorage_ListBuckets_Call) RunAndReturn(run func() ([]string, error)) *MockStorage_ListBuckets_Call

type MockStorage_ManagerUpload_Call

type MockStorage_ManagerUpload_Call struct {
	*mock.Call
}

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

func (*MockStorage_ManagerUpload_Call) Return

func (*MockStorage_ManagerUpload_Call) Run

func (*MockStorage_ManagerUpload_Call) RunAndReturn

type MockStorage_Upload_Call

type MockStorage_Upload_Call struct {
	*mock.Call
}

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

func (*MockStorage_Upload_Call) Return

func (*MockStorage_Upload_Call) Run

type MockUploadOption

type MockUploadOption struct {
	mock.Mock
}

MockUploadOption is an autogenerated mock type for the UploadOption type

func NewMockUploadOption

func NewMockUploadOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUploadOption

NewMockUploadOption creates a new instance of MockUploadOption. 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 (*MockUploadOption) EXPECT

func (*MockUploadOption) Execute

func (_m *MockUploadOption) Execute(_a0 *objects.UploadFileOptions)

Execute provides a mock function with given fields: _a0

type MockUploadOption_Execute_Call

type MockUploadOption_Execute_Call struct {
	*mock.Call
}

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

func (*MockUploadOption_Execute_Call) Return

func (*MockUploadOption_Execute_Call) Run

func (*MockUploadOption_Execute_Call) RunAndReturn

type MockUploadOption_Expecter

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

func (*MockUploadOption_Expecter) Execute

func (_e *MockUploadOption_Expecter) Execute(_a0 interface{}) *MockUploadOption_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *objects.UploadFileOptions

type MockUploaderFunc

type MockUploaderFunc struct {
	mock.Mock
}

MockUploaderFunc is an autogenerated mock type for the UploaderFunc type

func NewMockUploaderFunc

func NewMockUploaderFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUploaderFunc

NewMockUploaderFunc creates a new instance of MockUploaderFunc. 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 (*MockUploaderFunc) EXPECT

func (*MockUploaderFunc) Execute

func (_m *MockUploaderFunc) Execute(ctx context.Context, u *objects.Objects, files []objects.FileUpload) ([]objects.File, error)

Execute provides a mock function with given fields: ctx, u, files

type MockUploaderFunc_Execute_Call

type MockUploaderFunc_Execute_Call struct {
	*mock.Call
}

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

func (*MockUploaderFunc_Execute_Call) Return

func (*MockUploaderFunc_Execute_Call) Run

func (*MockUploaderFunc_Execute_Call) RunAndReturn

type MockUploaderFunc_Expecter

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

func (*MockUploaderFunc_Expecter) Execute

func (_e *MockUploaderFunc_Expecter) Execute(ctx interface{}, u interface{}, files interface{}) *MockUploaderFunc_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • u *objects.Objects
  • files []objects.FileUpload

type MockValidationFunc

type MockValidationFunc struct {
	mock.Mock
}

MockValidationFunc is an autogenerated mock type for the ValidationFunc type

func NewMockValidationFunc

func NewMockValidationFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockValidationFunc

NewMockValidationFunc creates a new instance of MockValidationFunc. 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 (*MockValidationFunc) EXPECT

func (*MockValidationFunc) Execute

func (_m *MockValidationFunc) Execute(f objects.File) error

Execute provides a mock function with given fields: f

type MockValidationFunc_Execute_Call

type MockValidationFunc_Execute_Call struct {
	*mock.Call
}

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

func (*MockValidationFunc_Execute_Call) Return

func (*MockValidationFunc_Execute_Call) Run

func (*MockValidationFunc_Execute_Call) RunAndReturn

type MockValidationFunc_Expecter

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

func (*MockValidationFunc_Expecter) Execute

Execute is a helper method to define mock.On call

  • f objects.File

Jump to

Keyboard shortcuts

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