Documentation
¶
Index ¶
- type MockAliasService
- type MockAliasService_Expecter
- type MockAliasService_FindByContentID_Call
- func (_c *MockAliasService_FindByContentID_Call) Return(aliass []*alias.Alias, err error) *MockAliasService_FindByContentID_Call
- func (_c *MockAliasService_FindByContentID_Call) Run(run func(ctx context.Context, contentID int)) *MockAliasService_FindByContentID_Call
- func (_c *MockAliasService_FindByContentID_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*alias.Alias, error)) *MockAliasService_FindByContentID_Call
- type MockContentService
- func (_m *MockContentService) EXPECT() *MockContentService_Expecter
- func (_mock *MockContentService) GetAll(ctx context.Context, limit int, offset int) ([]*content.Content, error)
- func (_mock *MockContentService) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)
- type MockContentService_Expecter
- type MockContentService_GetAll_Call
- func (_c *MockContentService_GetAll_Call) Return(contents []*content.Content, err error) *MockContentService_GetAll_Call
- func (_c *MockContentService_GetAll_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockContentService_GetAll_Call
- func (_c *MockContentService_GetAll_Call) RunAndReturn(...) *MockContentService_GetAll_Call
- type MockContentService_GetTranslations_Call
- func (_c *MockContentService_GetTranslations_Call) Return(contents []*content.Content, err error) *MockContentService_GetTranslations_Call
- func (_c *MockContentService_GetTranslations_Call) Run(run func(ctx context.Context, translationGroupID int, excludeID int)) *MockContentService_GetTranslations_Call
- func (_c *MockContentService_GetTranslations_Call) RunAndReturn(...) *MockContentService_GetTranslations_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAliasService ¶
MockAliasService is an autogenerated mock type for the AliasService type
func NewMockAliasService ¶
func NewMockAliasService(t interface {
mock.TestingT
Cleanup(func())
}) *MockAliasService
NewMockAliasService creates a new instance of MockAliasService. 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 (*MockAliasService) EXPECT ¶
func (_m *MockAliasService) EXPECT() *MockAliasService_Expecter
func (*MockAliasService) FindByContentID ¶
func (_mock *MockAliasService) FindByContentID(ctx context.Context, contentID int) ([]*alias.Alias, error)
FindByContentID provides a mock function for the type MockAliasService
type MockAliasService_Expecter ¶
type MockAliasService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAliasService_Expecter) FindByContentID ¶
func (_e *MockAliasService_Expecter) FindByContentID(ctx any, contentID any) *MockAliasService_FindByContentID_Call
FindByContentID is a helper method to define mock.On call
- ctx context.Context
- contentID int
type MockAliasService_FindByContentID_Call ¶
MockAliasService_FindByContentID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByContentID'
func (*MockAliasService_FindByContentID_Call) Return ¶
func (_c *MockAliasService_FindByContentID_Call) Return(aliass []*alias.Alias, err error) *MockAliasService_FindByContentID_Call
func (*MockAliasService_FindByContentID_Call) Run ¶
func (_c *MockAliasService_FindByContentID_Call) Run(run func(ctx context.Context, contentID int)) *MockAliasService_FindByContentID_Call
func (*MockAliasService_FindByContentID_Call) RunAndReturn ¶
func (_c *MockAliasService_FindByContentID_Call) RunAndReturn(run func(ctx context.Context, contentID int) ([]*alias.Alias, error)) *MockAliasService_FindByContentID_Call
type MockContentService ¶
MockContentService is an autogenerated mock type for the ContentService type
func NewMockContentService ¶
func NewMockContentService(t interface {
mock.TestingT
Cleanup(func())
}) *MockContentService
NewMockContentService creates a new instance of MockContentService. 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 (*MockContentService) EXPECT ¶
func (_m *MockContentService) EXPECT() *MockContentService_Expecter
func (*MockContentService) GetAll ¶
func (_mock *MockContentService) GetAll(ctx context.Context, limit int, offset int) ([]*content.Content, error)
GetAll provides a mock function for the type MockContentService
func (*MockContentService) GetTranslations ¶
func (_mock *MockContentService) GetTranslations(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)
GetTranslations provides a mock function for the type MockContentService
type MockContentService_Expecter ¶
type MockContentService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockContentService_Expecter) GetAll ¶
func (_e *MockContentService_Expecter) GetAll(ctx any, limit any, offset any) *MockContentService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockContentService_Expecter) GetTranslations ¶
func (_e *MockContentService_Expecter) GetTranslations(ctx any, translationGroupID any, excludeID any) *MockContentService_GetTranslations_Call
GetTranslations is a helper method to define mock.On call
- ctx context.Context
- translationGroupID int
- excludeID int
type MockContentService_GetAll_Call ¶
MockContentService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockContentService_GetAll_Call) Return ¶
func (_c *MockContentService_GetAll_Call) Return(contents []*content.Content, err error) *MockContentService_GetAll_Call
func (*MockContentService_GetAll_Call) Run ¶
func (_c *MockContentService_GetAll_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockContentService_GetAll_Call
func (*MockContentService_GetAll_Call) RunAndReturn ¶
func (_c *MockContentService_GetAll_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*content.Content, error)) *MockContentService_GetAll_Call
type MockContentService_GetTranslations_Call ¶
MockContentService_GetTranslations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTranslations'
func (*MockContentService_GetTranslations_Call) Return ¶
func (_c *MockContentService_GetTranslations_Call) Return(contents []*content.Content, err error) *MockContentService_GetTranslations_Call
func (*MockContentService_GetTranslations_Call) Run ¶
func (_c *MockContentService_GetTranslations_Call) Run(run func(ctx context.Context, translationGroupID int, excludeID int)) *MockContentService_GetTranslations_Call
func (*MockContentService_GetTranslations_Call) RunAndReturn ¶
func (_c *MockContentService_GetTranslations_Call) RunAndReturn(run func(ctx context.Context, translationGroupID int, excludeID int) ([]*content.Content, error)) *MockContentService_GetTranslations_Call