Documentation ¶
Index ¶
- type APIRequestCreateConverter
- type APIRequestCreateConverter_EntityOf_Call
- type APIRequestCreateConverter_Expecter
- type APIRequestUpdateConverter
- type APIRequestUpdateConverter_Expecter
- type APIRequestUpdateConverter_UpdatedEntityOf_Call
- func (_c *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]) Return(_a0 *R, _a1 error) *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]
- func (_c *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]) Run(run func(ctx context.Context, _a1 *T)) *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]
- type APIResponseConverter
- type APIResponseConverter_Expecter
- type APIResponseConverter_ResponseOf_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRequestCreateConverter ¶
type APIRequestCreateConverter[T request.APIRequest, R common.EntityConstraint] struct { mock.Mock }
APIRequestCreateConverter is an autogenerated mock type for the APIRequestCreateConverter type
func NewAPIRequestCreateConverter ¶
func NewAPIRequestCreateConverter[T request.APIRequest, R common.EntityConstraint](t mockConstructorTestingTNewAPIRequestCreateConverter) *APIRequestCreateConverter[T, R]
NewAPIRequestCreateConverter creates a new instance of APIRequestCreateConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*APIRequestCreateConverter[T, R]) EXPECT ¶
func (_m *APIRequestCreateConverter[T, R]) EXPECT() *APIRequestCreateConverter_Expecter[T, R]
func (*APIRequestCreateConverter[T, R]) EntityOf ¶
func (_m *APIRequestCreateConverter[T, R]) EntityOf(_a0 *T) R
EntityOf provides a mock function with given fields: _a0
type APIRequestCreateConverter_EntityOf_Call ¶
type APIRequestCreateConverter_EntityOf_Call[T request.APIRequest, R common.EntityConstraint] struct { *mock.Call }
APIRequestCreateConverter_EntityOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EntityOf'
func (*APIRequestCreateConverter_EntityOf_Call[T, R]) Return ¶
func (_c *APIRequestCreateConverter_EntityOf_Call[T, R]) Return(_a0 R) *APIRequestCreateConverter_EntityOf_Call[T, R]
func (*APIRequestCreateConverter_EntityOf_Call[T, R]) Run ¶
func (_c *APIRequestCreateConverter_EntityOf_Call[T, R]) Run(run func(_a0 *T)) *APIRequestCreateConverter_EntityOf_Call[T, R]
type APIRequestCreateConverter_Expecter ¶
type APIRequestCreateConverter_Expecter[T request.APIRequest, R common.EntityConstraint] struct { // contains filtered or unexported fields }
func (*APIRequestCreateConverter_Expecter[T, R]) EntityOf ¶
func (_e *APIRequestCreateConverter_Expecter[T, R]) EntityOf(_a0 interface{}) *APIRequestCreateConverter_EntityOf_Call[T, R]
EntityOf is a helper method to define mock.On call
- _a0 *T
type APIRequestUpdateConverter ¶
type APIRequestUpdateConverter[T request.APIRequest, R common.EntityConstraint] struct { mock.Mock }
APIRequestUpdateConverter is an autogenerated mock type for the APIRequestUpdateConverter type
func NewAPIRequestUpdateConverter ¶
func NewAPIRequestUpdateConverter[T request.APIRequest, R common.EntityConstraint](t mockConstructorTestingTNewAPIRequestUpdateConverter) *APIRequestUpdateConverter[T, R]
NewAPIRequestUpdateConverter creates a new instance of APIRequestUpdateConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*APIRequestUpdateConverter[T, R]) EXPECT ¶
func (_m *APIRequestUpdateConverter[T, R]) EXPECT() *APIRequestUpdateConverter_Expecter[T, R]
func (*APIRequestUpdateConverter[T, R]) UpdatedEntityOf ¶
func (_m *APIRequestUpdateConverter[T, R]) UpdatedEntityOf(ctx context.Context, _a1 *T) (*R, error)
UpdatedEntityOf provides a mock function with given fields: ctx, _a1
type APIRequestUpdateConverter_Expecter ¶
type APIRequestUpdateConverter_Expecter[T request.APIRequest, R common.EntityConstraint] struct { // contains filtered or unexported fields }
func (*APIRequestUpdateConverter_Expecter[T, R]) UpdatedEntityOf ¶
func (_e *APIRequestUpdateConverter_Expecter[T, R]) UpdatedEntityOf(ctx interface{}, _a1 interface{}) *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]
UpdatedEntityOf is a helper method to define mock.On call
- ctx context.Context
- _a1 *T
type APIRequestUpdateConverter_UpdatedEntityOf_Call ¶
type APIRequestUpdateConverter_UpdatedEntityOf_Call[T request.APIRequest, R common.EntityConstraint] struct { *mock.Call }
APIRequestUpdateConverter_UpdatedEntityOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatedEntityOf'
func (*APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]) Return ¶
func (_c *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]) Return(_a0 *R, _a1 error) *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]
func (*APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]) Run ¶
func (_c *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]) Run(run func(ctx context.Context, _a1 *T)) *APIRequestUpdateConverter_UpdatedEntityOf_Call[T, R]
type APIResponseConverter ¶
type APIResponseConverter[T common.EntityConstraint, R response.APIResponse] struct { mock.Mock }
APIResponseConverter is an autogenerated mock type for the APIResponseConverter type
func NewAPIResponseConverter ¶
func NewAPIResponseConverter[T common.EntityConstraint, R response.APIResponse](t mockConstructorTestingTNewAPIResponseConverter) *APIResponseConverter[T, R]
NewAPIResponseConverter creates a new instance of APIResponseConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*APIResponseConverter[T, R]) EXPECT ¶
func (_m *APIResponseConverter[T, R]) EXPECT() *APIResponseConverter_Expecter[T, R]
func (*APIResponseConverter[T, R]) ResponseOf ¶
func (_m *APIResponseConverter[T, R]) ResponseOf(_a0 T) R
ResponseOf provides a mock function with given fields: _a0
type APIResponseConverter_Expecter ¶
type APIResponseConverter_Expecter[T common.EntityConstraint, R response.APIResponse] struct { // contains filtered or unexported fields }
func (*APIResponseConverter_Expecter[T, R]) ResponseOf ¶
func (_e *APIResponseConverter_Expecter[T, R]) ResponseOf(_a0 interface{}) *APIResponseConverter_ResponseOf_Call[T, R]
ResponseOf is a helper method to define mock.On call
- _a0 T
type APIResponseConverter_ResponseOf_Call ¶
type APIResponseConverter_ResponseOf_Call[T common.EntityConstraint, R response.APIResponse] struct { *mock.Call }
APIResponseConverter_ResponseOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResponseOf'
func (*APIResponseConverter_ResponseOf_Call[T, R]) Return ¶
func (_c *APIResponseConverter_ResponseOf_Call[T, R]) Return(_a0 R) *APIResponseConverter_ResponseOf_Call[T, R]
func (*APIResponseConverter_ResponseOf_Call[T, R]) Run ¶
func (_c *APIResponseConverter_ResponseOf_Call[T, R]) Run(run func(_a0 T)) *APIResponseConverter_ResponseOf_Call[T, R]