Documentation
¶
Index ¶
- type Linkable
- type Linkable_Expecter
- type Linkable_JSONAPILinks_Call
- type ListResponse
- type ListResponse_Expecter
- type ListResponse_Results_Call
- type MarshalHook
- type MarshalHook_BeforeMarshal_Call
- type MarshalHook_Expecter
- type Metable
- type Metable_Expecter
- type Metable_JSONAPIMeta_Call
- type Payloader
- type Payloader_Expecter
- type Payloader_clearIncluded_Call
- type RelationshipLinkable
- type RelationshipLinkable_Expecter
- type RelationshipLinkable_JSONAPIRelationshipLinks_Call
- func (_c *RelationshipLinkable_JSONAPIRelationshipLinks_Call) Return(links *jsonapi.Links) *RelationshipLinkable_JSONAPIRelationshipLinks_Call
- func (_c *RelationshipLinkable_JSONAPIRelationshipLinks_Call) Run(run func(relation string)) *RelationshipLinkable_JSONAPIRelationshipLinks_Call
- func (_c *RelationshipLinkable_JSONAPIRelationshipLinks_Call) RunAndReturn(run func(relation string) *jsonapi.Links) *RelationshipLinkable_JSONAPIRelationshipLinks_Call
- type RelationshipMetable
- type RelationshipMetable_Expecter
- type RelationshipMetable_JSONAPIRelationshipMeta_Call
- func (_c *RelationshipMetable_JSONAPIRelationshipMeta_Call) Return(meta *jsonapi.Meta) *RelationshipMetable_JSONAPIRelationshipMeta_Call
- func (_c *RelationshipMetable_JSONAPIRelationshipMeta_Call) Run(run func(relation string)) *RelationshipMetable_JSONAPIRelationshipMeta_Call
- func (_c *RelationshipMetable_JSONAPIRelationshipMeta_Call) RunAndReturn(run func(relation string) *jsonapi.Meta) *RelationshipMetable_JSONAPIRelationshipMeta_Call
- type UnmarshalHook
- type UnmarshalHook_AfterUnmarshal_Call
- func (_c *UnmarshalHook_AfterUnmarshal_Call) Return(err error) *UnmarshalHook_AfterUnmarshal_Call
- func (_c *UnmarshalHook_AfterUnmarshal_Call) Run(run func()) *UnmarshalHook_AfterUnmarshal_Call
- func (_c *UnmarshalHook_AfterUnmarshal_Call) RunAndReturn(run func() error) *UnmarshalHook_AfterUnmarshal_Call
- type UnmarshalHook_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linkable ¶
Linkable is an autogenerated mock type for the Linkable type
func NewLinkable ¶
NewLinkable creates a new instance of Linkable. 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 (*Linkable) EXPECT ¶
func (_m *Linkable) EXPECT() *Linkable_Expecter
func (*Linkable) JSONAPILinks ¶
JSONAPILinks provides a mock function for the type Linkable
type Linkable_Expecter ¶
type Linkable_Expecter struct {
// contains filtered or unexported fields
}
func (*Linkable_Expecter) JSONAPILinks ¶
func (_e *Linkable_Expecter) JSONAPILinks() *Linkable_JSONAPILinks_Call
JSONAPILinks is a helper method to define mock.On call
type Linkable_JSONAPILinks_Call ¶
Linkable_JSONAPILinks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSONAPILinks'
func (*Linkable_JSONAPILinks_Call) Return ¶
func (_c *Linkable_JSONAPILinks_Call) Return(links *jsonapi.Links) *Linkable_JSONAPILinks_Call
func (*Linkable_JSONAPILinks_Call) Run ¶
func (_c *Linkable_JSONAPILinks_Call) Run(run func()) *Linkable_JSONAPILinks_Call
func (*Linkable_JSONAPILinks_Call) RunAndReturn ¶
func (_c *Linkable_JSONAPILinks_Call) RunAndReturn(run func() *jsonapi.Links) *Linkable_JSONAPILinks_Call
type ListResponse ¶
ListResponse is an autogenerated mock type for the ListResponse type
func NewListResponse ¶
func NewListResponse[T any](t interface { mock.TestingT Cleanup(func()) }) *ListResponse[T]
NewListResponse creates a new instance of ListResponse. 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 (*ListResponse[T]) EXPECT ¶
func (_m *ListResponse[T]) EXPECT() *ListResponse_Expecter[T]
func (*ListResponse[T]) Results ¶
func (_mock *ListResponse[T]) Results() []T
Results provides a mock function for the type ListResponse
type ListResponse_Expecter ¶
type ListResponse_Expecter[T any] struct { // contains filtered or unexported fields }
func (*ListResponse_Expecter[T]) Results ¶
func (_e *ListResponse_Expecter[T]) Results() *ListResponse_Results_Call[T]
Results is a helper method to define mock.On call
type ListResponse_Results_Call ¶
ListResponse_Results_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Results'
func (*ListResponse_Results_Call[T]) Return ¶
func (_c *ListResponse_Results_Call[T]) Return(vs []T) *ListResponse_Results_Call[T]
func (*ListResponse_Results_Call[T]) Run ¶
func (_c *ListResponse_Results_Call[T]) Run(run func()) *ListResponse_Results_Call[T]
func (*ListResponse_Results_Call[T]) RunAndReturn ¶
func (_c *ListResponse_Results_Call[T]) RunAndReturn(run func() []T) *ListResponse_Results_Call[T]
type MarshalHook ¶
MarshalHook is an autogenerated mock type for the MarshalHook type
func NewMarshalHook ¶
func NewMarshalHook(t interface {
mock.TestingT
Cleanup(func())
}) *MarshalHook
NewMarshalHook creates a new instance of MarshalHook. 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 (*MarshalHook) BeforeMarshal ¶
func (_mock *MarshalHook) BeforeMarshal() error
BeforeMarshal provides a mock function for the type MarshalHook
func (*MarshalHook) EXPECT ¶
func (_m *MarshalHook) EXPECT() *MarshalHook_Expecter
type MarshalHook_BeforeMarshal_Call ¶
MarshalHook_BeforeMarshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeforeMarshal'
func (*MarshalHook_BeforeMarshal_Call) Return ¶
func (_c *MarshalHook_BeforeMarshal_Call) Return(err error) *MarshalHook_BeforeMarshal_Call
func (*MarshalHook_BeforeMarshal_Call) Run ¶
func (_c *MarshalHook_BeforeMarshal_Call) Run(run func()) *MarshalHook_BeforeMarshal_Call
func (*MarshalHook_BeforeMarshal_Call) RunAndReturn ¶
func (_c *MarshalHook_BeforeMarshal_Call) RunAndReturn(run func() error) *MarshalHook_BeforeMarshal_Call
type MarshalHook_Expecter ¶
type MarshalHook_Expecter struct {
// contains filtered or unexported fields
}
func (*MarshalHook_Expecter) BeforeMarshal ¶
func (_e *MarshalHook_Expecter) BeforeMarshal() *MarshalHook_BeforeMarshal_Call
BeforeMarshal is a helper method to define mock.On call
type Metable ¶
Metable is an autogenerated mock type for the Metable type
func NewMetable ¶
NewMetable creates a new instance of Metable. 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 (*Metable) EXPECT ¶
func (_m *Metable) EXPECT() *Metable_Expecter
func (*Metable) JSONAPIMeta ¶
JSONAPIMeta provides a mock function for the type Metable
type Metable_Expecter ¶
type Metable_Expecter struct {
// contains filtered or unexported fields
}
func (*Metable_Expecter) JSONAPIMeta ¶
func (_e *Metable_Expecter) JSONAPIMeta() *Metable_JSONAPIMeta_Call
JSONAPIMeta is a helper method to define mock.On call
type Metable_JSONAPIMeta_Call ¶
Metable_JSONAPIMeta_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSONAPIMeta'
func (*Metable_JSONAPIMeta_Call) Return ¶
func (_c *Metable_JSONAPIMeta_Call) Return(meta *jsonapi.Meta) *Metable_JSONAPIMeta_Call
func (*Metable_JSONAPIMeta_Call) Run ¶
func (_c *Metable_JSONAPIMeta_Call) Run(run func()) *Metable_JSONAPIMeta_Call
func (*Metable_JSONAPIMeta_Call) RunAndReturn ¶
func (_c *Metable_JSONAPIMeta_Call) RunAndReturn(run func() *jsonapi.Meta) *Metable_JSONAPIMeta_Call
type Payloader ¶
Payloader is an autogenerated mock type for the Payloader type
func NewPayloader ¶
NewPayloader creates a new instance of Payloader. 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 (*Payloader) EXPECT ¶
func (_m *Payloader) EXPECT() *Payloader_Expecter
type Payloader_Expecter ¶
type Payloader_Expecter struct {
// contains filtered or unexported fields
}
type Payloader_clearIncluded_Call ¶
Payloader_clearIncluded_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'clearIncluded'
func (*Payloader_clearIncluded_Call) Return ¶
func (_c *Payloader_clearIncluded_Call) Return() *Payloader_clearIncluded_Call
func (*Payloader_clearIncluded_Call) Run ¶
func (_c *Payloader_clearIncluded_Call) Run(run func()) *Payloader_clearIncluded_Call
func (*Payloader_clearIncluded_Call) RunAndReturn ¶
func (_c *Payloader_clearIncluded_Call) RunAndReturn(run func()) *Payloader_clearIncluded_Call
type RelationshipLinkable ¶
RelationshipLinkable is an autogenerated mock type for the RelationshipLinkable type
func NewRelationshipLinkable ¶
func NewRelationshipLinkable(t interface {
mock.TestingT
Cleanup(func())
}) *RelationshipLinkable
NewRelationshipLinkable creates a new instance of RelationshipLinkable. 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 (*RelationshipLinkable) EXPECT ¶
func (_m *RelationshipLinkable) EXPECT() *RelationshipLinkable_Expecter
func (*RelationshipLinkable) JSONAPIRelationshipLinks ¶
func (_mock *RelationshipLinkable) JSONAPIRelationshipLinks(relation string) *jsonapi.Links
JSONAPIRelationshipLinks provides a mock function for the type RelationshipLinkable
type RelationshipLinkable_Expecter ¶
type RelationshipLinkable_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationshipLinkable_Expecter) JSONAPIRelationshipLinks ¶
func (_e *RelationshipLinkable_Expecter) JSONAPIRelationshipLinks(relation interface{}) *RelationshipLinkable_JSONAPIRelationshipLinks_Call
JSONAPIRelationshipLinks is a helper method to define mock.On call
- relation string
type RelationshipLinkable_JSONAPIRelationshipLinks_Call ¶
RelationshipLinkable_JSONAPIRelationshipLinks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSONAPIRelationshipLinks'
func (*RelationshipLinkable_JSONAPIRelationshipLinks_Call) Return ¶
func (_c *RelationshipLinkable_JSONAPIRelationshipLinks_Call) Return(links *jsonapi.Links) *RelationshipLinkable_JSONAPIRelationshipLinks_Call
func (*RelationshipLinkable_JSONAPIRelationshipLinks_Call) Run ¶
func (_c *RelationshipLinkable_JSONAPIRelationshipLinks_Call) Run(run func(relation string)) *RelationshipLinkable_JSONAPIRelationshipLinks_Call
func (*RelationshipLinkable_JSONAPIRelationshipLinks_Call) RunAndReturn ¶
func (_c *RelationshipLinkable_JSONAPIRelationshipLinks_Call) RunAndReturn(run func(relation string) *jsonapi.Links) *RelationshipLinkable_JSONAPIRelationshipLinks_Call
type RelationshipMetable ¶
RelationshipMetable is an autogenerated mock type for the RelationshipMetable type
func NewRelationshipMetable ¶
func NewRelationshipMetable(t interface {
mock.TestingT
Cleanup(func())
}) *RelationshipMetable
NewRelationshipMetable creates a new instance of RelationshipMetable. 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 (*RelationshipMetable) EXPECT ¶
func (_m *RelationshipMetable) EXPECT() *RelationshipMetable_Expecter
func (*RelationshipMetable) JSONAPIRelationshipMeta ¶
func (_mock *RelationshipMetable) JSONAPIRelationshipMeta(relation string) *jsonapi.Meta
JSONAPIRelationshipMeta provides a mock function for the type RelationshipMetable
type RelationshipMetable_Expecter ¶
type RelationshipMetable_Expecter struct {
// contains filtered or unexported fields
}
func (*RelationshipMetable_Expecter) JSONAPIRelationshipMeta ¶
func (_e *RelationshipMetable_Expecter) JSONAPIRelationshipMeta(relation interface{}) *RelationshipMetable_JSONAPIRelationshipMeta_Call
JSONAPIRelationshipMeta is a helper method to define mock.On call
- relation string
type RelationshipMetable_JSONAPIRelationshipMeta_Call ¶
RelationshipMetable_JSONAPIRelationshipMeta_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JSONAPIRelationshipMeta'
func (*RelationshipMetable_JSONAPIRelationshipMeta_Call) Return ¶
func (_c *RelationshipMetable_JSONAPIRelationshipMeta_Call) Return(meta *jsonapi.Meta) *RelationshipMetable_JSONAPIRelationshipMeta_Call
func (*RelationshipMetable_JSONAPIRelationshipMeta_Call) Run ¶
func (_c *RelationshipMetable_JSONAPIRelationshipMeta_Call) Run(run func(relation string)) *RelationshipMetable_JSONAPIRelationshipMeta_Call
func (*RelationshipMetable_JSONAPIRelationshipMeta_Call) RunAndReturn ¶
func (_c *RelationshipMetable_JSONAPIRelationshipMeta_Call) RunAndReturn(run func(relation string) *jsonapi.Meta) *RelationshipMetable_JSONAPIRelationshipMeta_Call
type UnmarshalHook ¶
UnmarshalHook is an autogenerated mock type for the UnmarshalHook type
func NewUnmarshalHook ¶
func NewUnmarshalHook(t interface {
mock.TestingT
Cleanup(func())
}) *UnmarshalHook
NewUnmarshalHook creates a new instance of UnmarshalHook. 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 (*UnmarshalHook) AfterUnmarshal ¶
func (_mock *UnmarshalHook) AfterUnmarshal() error
AfterUnmarshal provides a mock function for the type UnmarshalHook
func (*UnmarshalHook) EXPECT ¶
func (_m *UnmarshalHook) EXPECT() *UnmarshalHook_Expecter
type UnmarshalHook_AfterUnmarshal_Call ¶
UnmarshalHook_AfterUnmarshal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AfterUnmarshal'
func (*UnmarshalHook_AfterUnmarshal_Call) Return ¶
func (_c *UnmarshalHook_AfterUnmarshal_Call) Return(err error) *UnmarshalHook_AfterUnmarshal_Call
func (*UnmarshalHook_AfterUnmarshal_Call) Run ¶
func (_c *UnmarshalHook_AfterUnmarshal_Call) Run(run func()) *UnmarshalHook_AfterUnmarshal_Call
func (*UnmarshalHook_AfterUnmarshal_Call) RunAndReturn ¶
func (_c *UnmarshalHook_AfterUnmarshal_Call) RunAndReturn(run func() error) *UnmarshalHook_AfterUnmarshal_Call
type UnmarshalHook_Expecter ¶
type UnmarshalHook_Expecter struct {
// contains filtered or unexported fields
}
func (*UnmarshalHook_Expecter) AfterUnmarshal ¶
func (_e *UnmarshalHook_Expecter) AfterUnmarshal() *UnmarshalHook_AfterUnmarshal_Call
AfterUnmarshal is a helper method to define mock.On call