mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 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 MockAliasService

type MockAliasService struct {
	mock.Mock
}

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

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

func (*MockAliasService_FindByContentID_Call) RunAndReturn

type MockContentService

type MockContentService struct {
	mock.Mock
}

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

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

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

type MockContentService_GetTranslations_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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