jsonapitest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Linkable

type Linkable struct {
	mock.Mock
}

Linkable is an autogenerated mock type for the Linkable type

func NewLinkable

func NewLinkable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Linkable

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 (_mock *Linkable) JSONAPILinks() *jsonapi.Links

JSONAPILinks provides a mock function for the type Linkable

type Linkable_Expecter

type Linkable_Expecter struct {
	// contains filtered or unexported fields
}
func (_e *Linkable_Expecter) JSONAPILinks() *Linkable_JSONAPILinks_Call

JSONAPILinks is a helper method to define mock.On call

type Linkable_JSONAPILinks_Call struct {
	*mock.Call
}

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

func (_c *Linkable_JSONAPILinks_Call) RunAndReturn(run func() *jsonapi.Links) *Linkable_JSONAPILinks_Call

type ListResponse

type ListResponse[T any] struct {
	mock.Mock
}

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

type ListResponse_Results_Call[T any] struct {
	*mock.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

type MarshalHook struct {
	mock.Mock
}

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

type MarshalHook_BeforeMarshal_Call struct {
	*mock.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 (*MarshalHook_BeforeMarshal_Call) Run

func (*MarshalHook_BeforeMarshal_Call) RunAndReturn

type MarshalHook_Expecter

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

func (*MarshalHook_Expecter) BeforeMarshal

BeforeMarshal is a helper method to define mock.On call

type Metable

type Metable struct {
	mock.Mock
}

Metable is an autogenerated mock type for the Metable type

func NewMetable

func NewMetable(t interface {
	mock.TestingT
	Cleanup(func())
}) *Metable

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

func (_mock *Metable) JSONAPIMeta() *jsonapi.Meta

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

type Metable_JSONAPIMeta_Call struct {
	*mock.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 (*Metable_JSONAPIMeta_Call) Run

func (*Metable_JSONAPIMeta_Call) RunAndReturn

func (_c *Metable_JSONAPIMeta_Call) RunAndReturn(run func() *jsonapi.Meta) *Metable_JSONAPIMeta_Call

type Payloader

type Payloader struct {
	mock.Mock
}

Payloader is an autogenerated mock type for the Payloader type

func NewPayloader

func NewPayloader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Payloader

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

type Payloader_clearIncluded_Call struct {
	*mock.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 (*Payloader_clearIncluded_Call) Run

func (*Payloader_clearIncluded_Call) RunAndReturn

func (_c *Payloader_clearIncluded_Call) RunAndReturn(run func()) *Payloader_clearIncluded_Call

type RelationshipLinkable

type RelationshipLinkable struct {
	mock.Mock
}

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 (_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 (_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 struct {
	*mock.Call
}

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

type RelationshipMetable

type RelationshipMetable struct {
	mock.Mock
}

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 (*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

type RelationshipMetable_JSONAPIRelationshipMeta_Call struct {
	*mock.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 (*RelationshipMetable_JSONAPIRelationshipMeta_Call) Run

func (*RelationshipMetable_JSONAPIRelationshipMeta_Call) RunAndReturn

type UnmarshalHook

type UnmarshalHook struct {
	mock.Mock
}

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

type UnmarshalHook_AfterUnmarshal_Call struct {
	*mock.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 (*UnmarshalHook_AfterUnmarshal_Call) Run

func (*UnmarshalHook_AfterUnmarshal_Call) RunAndReturn

type UnmarshalHook_Expecter

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

func (*UnmarshalHook_Expecter) AfterUnmarshal

AfterUnmarshal is a helper method to define mock.On call

Jump to

Keyboard shortcuts

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