mocks

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 4 Imported by: 0 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 BaseCreateHandler

type BaseCreateHandler struct {
	mock.Mock
}

BaseCreateHandler is an autogenerated mock type for the BaseCreateHandler type

func NewBaseCreateHandler

func NewBaseCreateHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *BaseCreateHandler

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

func (*BaseCreateHandler) GetCreateInput

func (_m *BaseCreateHandler) GetCreateInput() interface{}

GetCreateInput provides a mock function with no fields

func (*BaseCreateHandler) TransformCreate

func (_m *BaseCreateHandler) TransformCreate(ctx context.Context, input interface{}, model db_repo.ModelBased) error

TransformCreate provides a mock function with given fields: ctx, input, model

type BaseCreateHandler_Expecter

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

func (*BaseCreateHandler_Expecter) GetCreateInput

GetCreateInput is a helper method to define mock.On call

func (*BaseCreateHandler_Expecter) TransformCreate

func (_e *BaseCreateHandler_Expecter) TransformCreate(ctx interface{}, input interface{}, model interface{}) *BaseCreateHandler_TransformCreate_Call

TransformCreate is a helper method to define mock.On call

  • ctx context.Context
  • input interface{}
  • model db_repo.ModelBased

type BaseCreateHandler_GetCreateInput_Call

type BaseCreateHandler_GetCreateInput_Call struct {
	*mock.Call
}

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

func (*BaseCreateHandler_GetCreateInput_Call) Return

func (*BaseCreateHandler_GetCreateInput_Call) Run

func (*BaseCreateHandler_GetCreateInput_Call) RunAndReturn

func (_c *BaseCreateHandler_GetCreateInput_Call) RunAndReturn(run func() interface{}) *BaseCreateHandler_GetCreateInput_Call

type BaseCreateHandler_TransformCreate_Call

type BaseCreateHandler_TransformCreate_Call struct {
	*mock.Call
}

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

func (*BaseCreateHandler_TransformCreate_Call) Return

func (*BaseCreateHandler_TransformCreate_Call) Run

func (*BaseCreateHandler_TransformCreate_Call) RunAndReturn

type BaseHandler

type BaseHandler struct {
	mock.Mock
}

BaseHandler is an autogenerated mock type for the BaseHandler type

func NewBaseHandler

func NewBaseHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *BaseHandler

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

func (_m *BaseHandler) EXPECT() *BaseHandler_Expecter

func (*BaseHandler) GetModel

func (_m *BaseHandler) GetModel() db_repo.ModelBased

GetModel provides a mock function with no fields

func (*BaseHandler) GetRepository

func (_m *BaseHandler) GetRepository() crud.Repository

GetRepository provides a mock function with no fields

func (*BaseHandler) TransformOutput

func (_m *BaseHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)

TransformOutput provides a mock function with given fields: ctx, model, apiView

type BaseHandler_Expecter

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

func (*BaseHandler_Expecter) GetModel

GetModel is a helper method to define mock.On call

func (*BaseHandler_Expecter) GetRepository

GetRepository is a helper method to define mock.On call

func (*BaseHandler_Expecter) TransformOutput

func (_e *BaseHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *BaseHandler_TransformOutput_Call

TransformOutput is a helper method to define mock.On call

  • ctx context.Context
  • model db_repo.ModelBased
  • apiView string

type BaseHandler_GetModel_Call

type BaseHandler_GetModel_Call struct {
	*mock.Call
}

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

func (*BaseHandler_GetModel_Call) Return

func (*BaseHandler_GetModel_Call) Run

func (*BaseHandler_GetModel_Call) RunAndReturn

type BaseHandler_GetRepository_Call

type BaseHandler_GetRepository_Call struct {
	*mock.Call
}

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

func (*BaseHandler_GetRepository_Call) Return

func (*BaseHandler_GetRepository_Call) Run

func (*BaseHandler_GetRepository_Call) RunAndReturn

type BaseHandler_TransformOutput_Call

type BaseHandler_TransformOutput_Call struct {
	*mock.Call
}

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

func (*BaseHandler_TransformOutput_Call) Return

func (_c *BaseHandler_TransformOutput_Call) Return(output interface{}, err error) *BaseHandler_TransformOutput_Call

func (*BaseHandler_TransformOutput_Call) Run

func (*BaseHandler_TransformOutput_Call) RunAndReturn

type BaseListHandler

type BaseListHandler struct {
	mock.Mock
}

BaseListHandler is an autogenerated mock type for the BaseListHandler type

func NewBaseListHandler

func NewBaseListHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *BaseListHandler

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

func (*BaseListHandler) List

func (_m *BaseListHandler) List(ctx context.Context, qb *db_repo.QueryBuilder, apiView string) (interface{}, error)

List provides a mock function with given fields: ctx, qb, apiView

type BaseListHandler_Expecter

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

func (*BaseListHandler_Expecter) List

func (_e *BaseListHandler_Expecter) List(ctx interface{}, qb interface{}, apiView interface{}) *BaseListHandler_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • qb *db_repo.QueryBuilder
  • apiView string

type BaseListHandler_List_Call

type BaseListHandler_List_Call struct {
	*mock.Call
}

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

func (*BaseListHandler_List_Call) Return

func (_c *BaseListHandler_List_Call) Return(out interface{}, err error) *BaseListHandler_List_Call

func (*BaseListHandler_List_Call) Run

func (*BaseListHandler_List_Call) RunAndReturn

func (_c *BaseListHandler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *BaseListHandler_List_Call

type BaseUpdateHandler

type BaseUpdateHandler struct {
	mock.Mock
}

BaseUpdateHandler is an autogenerated mock type for the BaseUpdateHandler type

func NewBaseUpdateHandler

func NewBaseUpdateHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *BaseUpdateHandler

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

func (*BaseUpdateHandler) GetUpdateInput

func (_m *BaseUpdateHandler) GetUpdateInput() interface{}

GetUpdateInput provides a mock function with no fields

func (*BaseUpdateHandler) TransformUpdate

func (_m *BaseUpdateHandler) TransformUpdate(ctx context.Context, input interface{}, model db_repo.ModelBased) error

TransformUpdate provides a mock function with given fields: ctx, input, model

type BaseUpdateHandler_Expecter

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

func (*BaseUpdateHandler_Expecter) GetUpdateInput

GetUpdateInput is a helper method to define mock.On call

func (*BaseUpdateHandler_Expecter) TransformUpdate

func (_e *BaseUpdateHandler_Expecter) TransformUpdate(ctx interface{}, input interface{}, model interface{}) *BaseUpdateHandler_TransformUpdate_Call

TransformUpdate is a helper method to define mock.On call

  • ctx context.Context
  • input interface{}
  • model db_repo.ModelBased

type BaseUpdateHandler_GetUpdateInput_Call

type BaseUpdateHandler_GetUpdateInput_Call struct {
	*mock.Call
}

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

func (*BaseUpdateHandler_GetUpdateInput_Call) Return

func (*BaseUpdateHandler_GetUpdateInput_Call) Run

func (*BaseUpdateHandler_GetUpdateInput_Call) RunAndReturn

func (_c *BaseUpdateHandler_GetUpdateInput_Call) RunAndReturn(run func() interface{}) *BaseUpdateHandler_GetUpdateInput_Call

type BaseUpdateHandler_TransformUpdate_Call

type BaseUpdateHandler_TransformUpdate_Call struct {
	*mock.Call
}

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

func (*BaseUpdateHandler_TransformUpdate_Call) Return

func (*BaseUpdateHandler_TransformUpdate_Call) Run

func (*BaseUpdateHandler_TransformUpdate_Call) RunAndReturn

type CreateHandler

type CreateHandler struct {
	mock.Mock
}

CreateHandler is an autogenerated mock type for the CreateHandler type

func NewCreateHandler

func NewCreateHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *CreateHandler

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

func (_m *CreateHandler) EXPECT() *CreateHandler_Expecter

func (*CreateHandler) GetCreateInput

func (_m *CreateHandler) GetCreateInput() interface{}

GetCreateInput provides a mock function with no fields

func (*CreateHandler) GetModel

func (_m *CreateHandler) GetModel() db_repo.ModelBased

GetModel provides a mock function with no fields

func (*CreateHandler) GetRepository

func (_m *CreateHandler) GetRepository() crud.Repository

GetRepository provides a mock function with no fields

func (*CreateHandler) TransformCreate

func (_m *CreateHandler) TransformCreate(ctx context.Context, input interface{}, model db_repo.ModelBased) error

TransformCreate provides a mock function with given fields: ctx, input, model

func (*CreateHandler) TransformOutput

func (_m *CreateHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)

TransformOutput provides a mock function with given fields: ctx, model, apiView

type CreateHandler_Expecter

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

func (*CreateHandler_Expecter) GetCreateInput

GetCreateInput is a helper method to define mock.On call

func (*CreateHandler_Expecter) GetModel

GetModel is a helper method to define mock.On call

func (*CreateHandler_Expecter) GetRepository

GetRepository is a helper method to define mock.On call

func (*CreateHandler_Expecter) TransformCreate

func (_e *CreateHandler_Expecter) TransformCreate(ctx interface{}, input interface{}, model interface{}) *CreateHandler_TransformCreate_Call

TransformCreate is a helper method to define mock.On call

  • ctx context.Context
  • input interface{}
  • model db_repo.ModelBased

func (*CreateHandler_Expecter) TransformOutput

func (_e *CreateHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *CreateHandler_TransformOutput_Call

TransformOutput is a helper method to define mock.On call

  • ctx context.Context
  • model db_repo.ModelBased
  • apiView string

type CreateHandler_GetCreateInput_Call

type CreateHandler_GetCreateInput_Call struct {
	*mock.Call
}

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

func (*CreateHandler_GetCreateInput_Call) Return

func (*CreateHandler_GetCreateInput_Call) Run

func (*CreateHandler_GetCreateInput_Call) RunAndReturn

func (_c *CreateHandler_GetCreateInput_Call) RunAndReturn(run func() interface{}) *CreateHandler_GetCreateInput_Call

type CreateHandler_GetModel_Call

type CreateHandler_GetModel_Call struct {
	*mock.Call
}

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

func (*CreateHandler_GetModel_Call) Return

func (*CreateHandler_GetModel_Call) Run

func (*CreateHandler_GetModel_Call) RunAndReturn

type CreateHandler_GetRepository_Call

type CreateHandler_GetRepository_Call struct {
	*mock.Call
}

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

func (*CreateHandler_GetRepository_Call) Return

func (*CreateHandler_GetRepository_Call) Run

func (*CreateHandler_GetRepository_Call) RunAndReturn

type CreateHandler_TransformCreate_Call

type CreateHandler_TransformCreate_Call struct {
	*mock.Call
}

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

func (*CreateHandler_TransformCreate_Call) Return

func (*CreateHandler_TransformCreate_Call) Run

func (*CreateHandler_TransformCreate_Call) RunAndReturn

type CreateHandler_TransformOutput_Call

type CreateHandler_TransformOutput_Call struct {
	*mock.Call
}

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

func (*CreateHandler_TransformOutput_Call) Return

func (*CreateHandler_TransformOutput_Call) Run

func (*CreateHandler_TransformOutput_Call) RunAndReturn

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Handler

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

func (_m *Handler) EXPECT() *Handler_Expecter

func (*Handler) GetCreateInput

func (_m *Handler) GetCreateInput() interface{}

GetCreateInput provides a mock function with no fields

func (*Handler) GetModel

func (_m *Handler) GetModel() db_repo.ModelBased

GetModel provides a mock function with no fields

func (*Handler) GetRepository

func (_m *Handler) GetRepository() crud.Repository

GetRepository provides a mock function with no fields

func (*Handler) GetUpdateInput

func (_m *Handler) GetUpdateInput() interface{}

GetUpdateInput provides a mock function with no fields

func (*Handler) List

func (_m *Handler) List(ctx context.Context, qb *db_repo.QueryBuilder, apiView string) (interface{}, error)

List provides a mock function with given fields: ctx, qb, apiView

func (*Handler) TransformCreate

func (_m *Handler) TransformCreate(ctx context.Context, input interface{}, model db_repo.ModelBased) error

TransformCreate provides a mock function with given fields: ctx, input, model

func (*Handler) TransformOutput

func (_m *Handler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)

TransformOutput provides a mock function with given fields: ctx, model, apiView

func (*Handler) TransformUpdate

func (_m *Handler) TransformUpdate(ctx context.Context, input interface{}, model db_repo.ModelBased) error

TransformUpdate provides a mock function with given fields: ctx, input, model

type Handler_Expecter

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

func (*Handler_Expecter) GetCreateInput

func (_e *Handler_Expecter) GetCreateInput() *Handler_GetCreateInput_Call

GetCreateInput is a helper method to define mock.On call

func (*Handler_Expecter) GetModel

func (_e *Handler_Expecter) GetModel() *Handler_GetModel_Call

GetModel is a helper method to define mock.On call

func (*Handler_Expecter) GetRepository

func (_e *Handler_Expecter) GetRepository() *Handler_GetRepository_Call

GetRepository is a helper method to define mock.On call

func (*Handler_Expecter) GetUpdateInput

func (_e *Handler_Expecter) GetUpdateInput() *Handler_GetUpdateInput_Call

GetUpdateInput is a helper method to define mock.On call

func (*Handler_Expecter) List

func (_e *Handler_Expecter) List(ctx interface{}, qb interface{}, apiView interface{}) *Handler_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • qb *db_repo.QueryBuilder
  • apiView string

func (*Handler_Expecter) TransformCreate

func (_e *Handler_Expecter) TransformCreate(ctx interface{}, input interface{}, model interface{}) *Handler_TransformCreate_Call

TransformCreate is a helper method to define mock.On call

  • ctx context.Context
  • input interface{}
  • model db_repo.ModelBased

func (*Handler_Expecter) TransformOutput

func (_e *Handler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *Handler_TransformOutput_Call

TransformOutput is a helper method to define mock.On call

  • ctx context.Context
  • model db_repo.ModelBased
  • apiView string

func (*Handler_Expecter) TransformUpdate

func (_e *Handler_Expecter) TransformUpdate(ctx interface{}, input interface{}, model interface{}) *Handler_TransformUpdate_Call

TransformUpdate is a helper method to define mock.On call

  • ctx context.Context
  • input interface{}
  • model db_repo.ModelBased

type Handler_GetCreateInput_Call

type Handler_GetCreateInput_Call struct {
	*mock.Call
}

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

func (*Handler_GetCreateInput_Call) Return

func (_c *Handler_GetCreateInput_Call) Return(_a0 interface{}) *Handler_GetCreateInput_Call

func (*Handler_GetCreateInput_Call) Run

func (*Handler_GetCreateInput_Call) RunAndReturn

func (_c *Handler_GetCreateInput_Call) RunAndReturn(run func() interface{}) *Handler_GetCreateInput_Call

type Handler_GetModel_Call

type Handler_GetModel_Call struct {
	*mock.Call
}

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

func (*Handler_GetModel_Call) Return

func (*Handler_GetModel_Call) Run

func (_c *Handler_GetModel_Call) Run(run func()) *Handler_GetModel_Call

func (*Handler_GetModel_Call) RunAndReturn

func (_c *Handler_GetModel_Call) RunAndReturn(run func() db_repo.ModelBased) *Handler_GetModel_Call

type Handler_GetRepository_Call

type Handler_GetRepository_Call struct {
	*mock.Call
}

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

func (*Handler_GetRepository_Call) Return

func (*Handler_GetRepository_Call) Run

func (*Handler_GetRepository_Call) RunAndReturn

type Handler_GetUpdateInput_Call

type Handler_GetUpdateInput_Call struct {
	*mock.Call
}

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

func (*Handler_GetUpdateInput_Call) Return

func (_c *Handler_GetUpdateInput_Call) Return(_a0 interface{}) *Handler_GetUpdateInput_Call

func (*Handler_GetUpdateInput_Call) Run

func (*Handler_GetUpdateInput_Call) RunAndReturn

func (_c *Handler_GetUpdateInput_Call) RunAndReturn(run func() interface{}) *Handler_GetUpdateInput_Call

type Handler_List_Call

type Handler_List_Call struct {
	*mock.Call
}

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

func (*Handler_List_Call) Return

func (_c *Handler_List_Call) Return(out interface{}, err error) *Handler_List_Call

func (*Handler_List_Call) Run

func (_c *Handler_List_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, apiView string)) *Handler_List_Call

func (*Handler_List_Call) RunAndReturn

func (_c *Handler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *Handler_List_Call

type Handler_TransformCreate_Call

type Handler_TransformCreate_Call struct {
	*mock.Call
}

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

func (*Handler_TransformCreate_Call) Return

func (*Handler_TransformCreate_Call) Run

func (_c *Handler_TransformCreate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *Handler_TransformCreate_Call

func (*Handler_TransformCreate_Call) RunAndReturn

type Handler_TransformOutput_Call

type Handler_TransformOutput_Call struct {
	*mock.Call
}

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

func (*Handler_TransformOutput_Call) Return

func (_c *Handler_TransformOutput_Call) Return(output interface{}, err error) *Handler_TransformOutput_Call

func (*Handler_TransformOutput_Call) Run

func (*Handler_TransformOutput_Call) RunAndReturn

type Handler_TransformUpdate_Call

type Handler_TransformUpdate_Call struct {
	*mock.Call
}

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

func (*Handler_TransformUpdate_Call) Return

func (*Handler_TransformUpdate_Call) Run

func (_c *Handler_TransformUpdate_Call) Run(run func(ctx context.Context, input interface{}, model db_repo.ModelBased)) *Handler_TransformUpdate_Call

func (*Handler_TransformUpdate_Call) RunAndReturn

type ListHandler

type ListHandler struct {
	mock.Mock
}

ListHandler is an autogenerated mock type for the ListHandler type

func NewListHandler

func NewListHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *ListHandler

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

func (_m *ListHandler) EXPECT() *ListHandler_Expecter

func (*ListHandler) GetModel

func (_m *ListHandler) GetModel() db_repo.ModelBased

GetModel provides a mock function with no fields

func (*ListHandler) GetRepository

func (_m *ListHandler) GetRepository() crud.Repository

GetRepository provides a mock function with no fields

func (*ListHandler) List

func (_m *ListHandler) List(ctx context.Context, qb *db_repo.QueryBuilder, apiView string) (interface{}, error)

List provides a mock function with given fields: ctx, qb, apiView

func (*ListHandler) TransformOutput

func (_m *ListHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)

TransformOutput provides a mock function with given fields: ctx, model, apiView

type ListHandler_Expecter

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

func (*ListHandler_Expecter) GetModel

GetModel is a helper method to define mock.On call

func (*ListHandler_Expecter) GetRepository

GetRepository is a helper method to define mock.On call

func (*ListHandler_Expecter) List

func (_e *ListHandler_Expecter) List(ctx interface{}, qb interface{}, apiView interface{}) *ListHandler_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • qb *db_repo.QueryBuilder
  • apiView string

func (*ListHandler_Expecter) TransformOutput

func (_e *ListHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *ListHandler_TransformOutput_Call

TransformOutput is a helper method to define mock.On call

  • ctx context.Context
  • model db_repo.ModelBased
  • apiView string

type ListHandler_GetModel_Call

type ListHandler_GetModel_Call struct {
	*mock.Call
}

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

func (*ListHandler_GetModel_Call) Return

func (*ListHandler_GetModel_Call) Run

func (*ListHandler_GetModel_Call) RunAndReturn

type ListHandler_GetRepository_Call

type ListHandler_GetRepository_Call struct {
	*mock.Call
}

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

func (*ListHandler_GetRepository_Call) Return

func (*ListHandler_GetRepository_Call) Run

func (*ListHandler_GetRepository_Call) RunAndReturn

type ListHandler_List_Call

type ListHandler_List_Call struct {
	*mock.Call
}

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

func (*ListHandler_List_Call) Return

func (_c *ListHandler_List_Call) Return(out interface{}, err error) *ListHandler_List_Call

func (*ListHandler_List_Call) Run

func (*ListHandler_List_Call) RunAndReturn

func (_c *ListHandler_List_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, string) (interface{}, error)) *ListHandler_List_Call

type ListHandler_TransformOutput_Call

type ListHandler_TransformOutput_Call struct {
	*mock.Call
}

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

func (*ListHandler_TransformOutput_Call) Return

func (_c *ListHandler_TransformOutput_Call) Return(output interface{}, err error) *ListHandler_TransformOutput_Call

func (*ListHandler_TransformOutput_Call) Run

func (*ListHandler_TransformOutput_Call) RunAndReturn

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) Count

func (_m *Repository) Count(ctx context.Context, qb *db_repo.QueryBuilder, model db_repo.ModelBased) (int, error)

Count provides a mock function with given fields: ctx, qb, model

func (*Repository) Create

func (_m *Repository) Create(ctx context.Context, value db_repo.ModelBased) error

Create provides a mock function with given fields: ctx, value

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, value db_repo.ModelBased) error

Delete provides a mock function with given fields: ctx, value

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetMetadata

func (_m *Repository) GetMetadata() db_repo.Metadata

GetMetadata provides a mock function with no fields

func (*Repository) Query

func (_m *Repository) Query(ctx context.Context, qb *db_repo.QueryBuilder, result interface{}) error

Query provides a mock function with given fields: ctx, qb, result

func (*Repository) Read

func (_m *Repository) Read(ctx context.Context, id *uint, out db_repo.ModelBased) error

Read provides a mock function with given fields: ctx, id, out

func (*Repository) Update

func (_m *Repository) Update(ctx context.Context, value db_repo.ModelBased) error

Update provides a mock function with given fields: ctx, value

type Repository_Count_Call

type Repository_Count_Call struct {
	*mock.Call
}

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

func (*Repository_Count_Call) Return

func (_c *Repository_Count_Call) Return(_a0 int, _a1 error) *Repository_Count_Call

func (*Repository_Count_Call) Run

func (*Repository_Count_Call) RunAndReturn

type Repository_Create_Call

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return

func (*Repository_Create_Call) Run

func (*Repository_Create_Call) RunAndReturn

type Repository_Delete_Call

type Repository_Delete_Call struct {
	*mock.Call
}

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

func (*Repository_Delete_Call) Return

func (*Repository_Delete_Call) Run

func (*Repository_Delete_Call) RunAndReturn

type Repository_Expecter

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

func (*Repository_Expecter) Count

func (_e *Repository_Expecter) Count(ctx interface{}, qb interface{}, model interface{}) *Repository_Count_Call

Count is a helper method to define mock.On call

  • ctx context.Context
  • qb *db_repo.QueryBuilder
  • model db_repo.ModelBased

func (*Repository_Expecter) Create

func (_e *Repository_Expecter) Create(ctx interface{}, value interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • value db_repo.ModelBased

func (*Repository_Expecter) Delete

func (_e *Repository_Expecter) Delete(ctx interface{}, value interface{}) *Repository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • value db_repo.ModelBased

func (*Repository_Expecter) GetMetadata

GetMetadata is a helper method to define mock.On call

func (*Repository_Expecter) Query

func (_e *Repository_Expecter) Query(ctx interface{}, qb interface{}, result interface{}) *Repository_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • qb *db_repo.QueryBuilder
  • result interface{}

func (*Repository_Expecter) Read

func (_e *Repository_Expecter) Read(ctx interface{}, id interface{}, out interface{}) *Repository_Read_Call

Read is a helper method to define mock.On call

  • ctx context.Context
  • id *uint
  • out db_repo.ModelBased

func (*Repository_Expecter) Update

func (_e *Repository_Expecter) Update(ctx interface{}, value interface{}) *Repository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • value db_repo.ModelBased

type Repository_GetMetadata_Call

type Repository_GetMetadata_Call struct {
	*mock.Call
}

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

func (*Repository_GetMetadata_Call) Return

func (*Repository_GetMetadata_Call) Run

func (*Repository_GetMetadata_Call) RunAndReturn

type Repository_Query_Call

type Repository_Query_Call struct {
	*mock.Call
}

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

func (*Repository_Query_Call) Return

func (*Repository_Query_Call) Run

func (_c *Repository_Query_Call) Run(run func(ctx context.Context, qb *db_repo.QueryBuilder, result interface{})) *Repository_Query_Call

func (*Repository_Query_Call) RunAndReturn

func (_c *Repository_Query_Call) RunAndReturn(run func(context.Context, *db_repo.QueryBuilder, interface{}) error) *Repository_Query_Call

type Repository_Read_Call

type Repository_Read_Call struct {
	*mock.Call
}

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

func (*Repository_Read_Call) Return

func (*Repository_Read_Call) Run

func (*Repository_Read_Call) RunAndReturn

type Repository_Update_Call

type Repository_Update_Call struct {
	*mock.Call
}

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

func (*Repository_Update_Call) Return

func (*Repository_Update_Call) Run

func (*Repository_Update_Call) RunAndReturn

type UpdateHandler

type UpdateHandler struct {
	mock.Mock
}

UpdateHandler is an autogenerated mock type for the UpdateHandler type

func NewUpdateHandler

func NewUpdateHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *UpdateHandler

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

func (_m *UpdateHandler) EXPECT() *UpdateHandler_Expecter

func (*UpdateHandler) GetModel

func (_m *UpdateHandler) GetModel() db_repo.ModelBased

GetModel provides a mock function with no fields

func (*UpdateHandler) GetRepository

func (_m *UpdateHandler) GetRepository() crud.Repository

GetRepository provides a mock function with no fields

func (*UpdateHandler) GetUpdateInput

func (_m *UpdateHandler) GetUpdateInput() interface{}

GetUpdateInput provides a mock function with no fields

func (*UpdateHandler) TransformOutput

func (_m *UpdateHandler) TransformOutput(ctx context.Context, model db_repo.ModelBased, apiView string) (interface{}, error)

TransformOutput provides a mock function with given fields: ctx, model, apiView

func (*UpdateHandler) TransformUpdate

func (_m *UpdateHandler) TransformUpdate(ctx context.Context, input interface{}, model db_repo.ModelBased) error

TransformUpdate provides a mock function with given fields: ctx, input, model

type UpdateHandler_Expecter

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

func (*UpdateHandler_Expecter) GetModel

GetModel is a helper method to define mock.On call

func (*UpdateHandler_Expecter) GetRepository

GetRepository is a helper method to define mock.On call

func (*UpdateHandler_Expecter) GetUpdateInput

GetUpdateInput is a helper method to define mock.On call

func (*UpdateHandler_Expecter) TransformOutput

func (_e *UpdateHandler_Expecter) TransformOutput(ctx interface{}, model interface{}, apiView interface{}) *UpdateHandler_TransformOutput_Call

TransformOutput is a helper method to define mock.On call

  • ctx context.Context
  • model db_repo.ModelBased
  • apiView string

func (*UpdateHandler_Expecter) TransformUpdate

func (_e *UpdateHandler_Expecter) TransformUpdate(ctx interface{}, input interface{}, model interface{}) *UpdateHandler_TransformUpdate_Call

TransformUpdate is a helper method to define mock.On call

  • ctx context.Context
  • input interface{}
  • model db_repo.ModelBased

type UpdateHandler_GetModel_Call

type UpdateHandler_GetModel_Call struct {
	*mock.Call
}

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

func (*UpdateHandler_GetModel_Call) Return

func (*UpdateHandler_GetModel_Call) Run

func (*UpdateHandler_GetModel_Call) RunAndReturn

type UpdateHandler_GetRepository_Call

type UpdateHandler_GetRepository_Call struct {
	*mock.Call
}

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

func (*UpdateHandler_GetRepository_Call) Return

func (*UpdateHandler_GetRepository_Call) Run

func (*UpdateHandler_GetRepository_Call) RunAndReturn

type UpdateHandler_GetUpdateInput_Call

type UpdateHandler_GetUpdateInput_Call struct {
	*mock.Call
}

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

func (*UpdateHandler_GetUpdateInput_Call) Return

func (*UpdateHandler_GetUpdateInput_Call) Run

func (*UpdateHandler_GetUpdateInput_Call) RunAndReturn

func (_c *UpdateHandler_GetUpdateInput_Call) RunAndReturn(run func() interface{}) *UpdateHandler_GetUpdateInput_Call

type UpdateHandler_TransformOutput_Call

type UpdateHandler_TransformOutput_Call struct {
	*mock.Call
}

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

func (*UpdateHandler_TransformOutput_Call) Return

func (*UpdateHandler_TransformOutput_Call) Run

func (*UpdateHandler_TransformOutput_Call) RunAndReturn

type UpdateHandler_TransformUpdate_Call

type UpdateHandler_TransformUpdate_Call struct {
	*mock.Call
}

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

func (*UpdateHandler_TransformUpdate_Call) Return

func (*UpdateHandler_TransformUpdate_Call) Run

func (*UpdateHandler_TransformUpdate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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