mocks

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 3 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 MockActiveThemeState

type MockActiveThemeState struct {
	mock.Mock
}

MockActiveThemeState is an autogenerated mock type for the ActiveThemeState type

func NewMockActiveThemeState

func NewMockActiveThemeState(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockActiveThemeState

NewMockActiveThemeState creates a new instance of MockActiveThemeState. 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 (*MockActiveThemeState) ActiveTheme

func (_mock *MockActiveThemeState) ActiveTheme(ctx context.Context) string

ActiveTheme provides a mock function for the type MockActiveThemeState

func (*MockActiveThemeState) EXPECT

type MockActiveThemeState_ActiveTheme_Call

type MockActiveThemeState_ActiveTheme_Call struct {
	*mock.Call
}

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

func (*MockActiveThemeState_ActiveTheme_Call) Return

func (*MockActiveThemeState_ActiveTheme_Call) Run

func (*MockActiveThemeState_ActiveTheme_Call) RunAndReturn

type MockActiveThemeState_Expecter

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

func (*MockActiveThemeState_Expecter) ActiveTheme

ActiveTheme is a helper method to define mock.On call

  • ctx context.Context

type MockThemeGenerationService

type MockThemeGenerationService struct {
	mock.Mock
}

MockThemeGenerationService is an autogenerated mock type for the ThemeGenerationService type

func NewMockThemeGenerationService

func NewMockThemeGenerationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockThemeGenerationService

NewMockThemeGenerationService creates a new instance of MockThemeGenerationService. 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 (*MockThemeGenerationService) EXPECT

func (*MockThemeGenerationService) GenerateTheme

func (_mock *MockThemeGenerationService) GenerateTheme(ctx context.Context, brief themegen.Brief, edition themegen.Edition, sources themegen.ThemeSources) (themegen.Theme, error)

GenerateTheme provides a mock function for the type MockThemeGenerationService

func (*MockThemeGenerationService) RepairTheme

func (_mock *MockThemeGenerationService) RepairTheme(ctx context.Context, brief themegen.Brief, sources themegen.ThemeSources, theme themegen.Theme, problems []string) (themegen.Theme, error)

RepairTheme provides a mock function for the type MockThemeGenerationService

type MockThemeGenerationService_Expecter

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

func (*MockThemeGenerationService_Expecter) GenerateTheme

func (_e *MockThemeGenerationService_Expecter) GenerateTheme(ctx any, brief any, edition any, sources any) *MockThemeGenerationService_GenerateTheme_Call

GenerateTheme is a helper method to define mock.On call

  • ctx context.Context
  • brief themegen.Brief
  • edition themegen.Edition
  • sources themegen.ThemeSources

func (*MockThemeGenerationService_Expecter) RepairTheme

func (_e *MockThemeGenerationService_Expecter) RepairTheme(ctx any, brief any, sources any, theme any, problems any) *MockThemeGenerationService_RepairTheme_Call

RepairTheme is a helper method to define mock.On call

  • ctx context.Context
  • brief themegen.Brief
  • sources themegen.ThemeSources
  • theme themegen.Theme
  • problems []string

type MockThemeGenerationService_GenerateTheme_Call

type MockThemeGenerationService_GenerateTheme_Call struct {
	*mock.Call
}

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

func (*MockThemeGenerationService_GenerateTheme_Call) Return

func (*MockThemeGenerationService_GenerateTheme_Call) Run

func (_c *MockThemeGenerationService_GenerateTheme_Call) Run(run func(ctx context.Context, brief themegen.Brief, edition themegen.Edition, sources themegen.ThemeSources)) *MockThemeGenerationService_GenerateTheme_Call

func (*MockThemeGenerationService_GenerateTheme_Call) RunAndReturn

func (_c *MockThemeGenerationService_GenerateTheme_Call) RunAndReturn(run func(ctx context.Context, brief themegen.Brief, edition themegen.Edition, sources themegen.ThemeSources) (themegen.Theme, error)) *MockThemeGenerationService_GenerateTheme_Call

type MockThemeGenerationService_RepairTheme_Call

type MockThemeGenerationService_RepairTheme_Call struct {
	*mock.Call
}

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

func (*MockThemeGenerationService_RepairTheme_Call) Return

func (*MockThemeGenerationService_RepairTheme_Call) Run

func (_c *MockThemeGenerationService_RepairTheme_Call) Run(run func(ctx context.Context, brief themegen.Brief, sources themegen.ThemeSources, theme themegen.Theme, problems []string)) *MockThemeGenerationService_RepairTheme_Call

func (*MockThemeGenerationService_RepairTheme_Call) RunAndReturn

func (_c *MockThemeGenerationService_RepairTheme_Call) RunAndReturn(run func(ctx context.Context, brief themegen.Brief, sources themegen.ThemeSources, theme themegen.Theme, problems []string) (themegen.Theme, error)) *MockThemeGenerationService_RepairTheme_Call

type MockThemeStore

type MockThemeStore struct {
	mock.Mock
}

MockThemeStore is an autogenerated mock type for the ThemeStore type

func NewMockThemeStore

func NewMockThemeStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockThemeStore

NewMockThemeStore creates a new instance of MockThemeStore. 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 (*MockThemeStore) Delete

func (_mock *MockThemeStore) Delete(ctx context.Context, name string) error

Delete provides a mock function for the type MockThemeStore

func (*MockThemeStore) EXPECT

func (*MockThemeStore) Get

func (_mock *MockThemeStore) Get(ctx context.Context, name string) (themegen.Theme, error)

Get provides a mock function for the type MockThemeStore

func (*MockThemeStore) Install

func (_mock *MockThemeStore) Install(ctx context.Context, theme themegen.Theme) error

Install provides a mock function for the type MockThemeStore

func (*MockThemeStore) List

func (_mock *MockThemeStore) List(ctx context.Context) ([]themegen.InstalledTheme, error)

List provides a mock function for the type MockThemeStore

func (*MockThemeStore) Zip

func (_mock *MockThemeStore) Zip(ctx context.Context, name string) ([]byte, error)

Zip provides a mock function for the type MockThemeStore

type MockThemeStore_Delete_Call

type MockThemeStore_Delete_Call struct {
	*mock.Call
}

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

func (*MockThemeStore_Delete_Call) Return

func (*MockThemeStore_Delete_Call) Run

func (*MockThemeStore_Delete_Call) RunAndReturn

func (_c *MockThemeStore_Delete_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockThemeStore_Delete_Call

type MockThemeStore_Expecter

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

func (*MockThemeStore_Expecter) Delete

Delete is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockThemeStore_Expecter) Get

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockThemeStore_Expecter) Install

Install is a helper method to define mock.On call

  • ctx context.Context
  • theme themegen.Theme

func (*MockThemeStore_Expecter) List

List is a helper method to define mock.On call

  • ctx context.Context

func (*MockThemeStore_Expecter) Zip

Zip is a helper method to define mock.On call

  • ctx context.Context
  • name string

type MockThemeStore_Get_Call

type MockThemeStore_Get_Call struct {
	*mock.Call
}

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

func (*MockThemeStore_Get_Call) Return

func (_c *MockThemeStore_Get_Call) Return(theme themegen.Theme, err error) *MockThemeStore_Get_Call

func (*MockThemeStore_Get_Call) Run

func (*MockThemeStore_Get_Call) RunAndReturn

func (_c *MockThemeStore_Get_Call) RunAndReturn(run func(ctx context.Context, name string) (themegen.Theme, error)) *MockThemeStore_Get_Call

type MockThemeStore_Install_Call

type MockThemeStore_Install_Call struct {
	*mock.Call
}

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

func (*MockThemeStore_Install_Call) Return

func (*MockThemeStore_Install_Call) Run

func (_c *MockThemeStore_Install_Call) Run(run func(ctx context.Context, theme themegen.Theme)) *MockThemeStore_Install_Call

func (*MockThemeStore_Install_Call) RunAndReturn

func (_c *MockThemeStore_Install_Call) RunAndReturn(run func(ctx context.Context, theme themegen.Theme) error) *MockThemeStore_Install_Call

type MockThemeStore_List_Call

type MockThemeStore_List_Call struct {
	*mock.Call
}

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

func (*MockThemeStore_List_Call) Return

func (_c *MockThemeStore_List_Call) Return(installedThemes []themegen.InstalledTheme, err error) *MockThemeStore_List_Call

func (*MockThemeStore_List_Call) Run

func (*MockThemeStore_List_Call) RunAndReturn

func (_c *MockThemeStore_List_Call) RunAndReturn(run func(ctx context.Context) ([]themegen.InstalledTheme, error)) *MockThemeStore_List_Call

type MockThemeStore_Zip_Call

type MockThemeStore_Zip_Call struct {
	*mock.Call
}

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

func (*MockThemeStore_Zip_Call) Return

func (_c *MockThemeStore_Zip_Call) Return(bytes []byte, err error) *MockThemeStore_Zip_Call

func (*MockThemeStore_Zip_Call) Run

func (*MockThemeStore_Zip_Call) RunAndReturn

func (_c *MockThemeStore_Zip_Call) RunAndReturn(run func(ctx context.Context, name string) ([]byte, error)) *MockThemeStore_Zip_Call

type MockThemeValidator

type MockThemeValidator struct {
	mock.Mock
}

MockThemeValidator is an autogenerated mock type for the ThemeValidator type

func NewMockThemeValidator

func NewMockThemeValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockThemeValidator

NewMockThemeValidator creates a new instance of MockThemeValidator. 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 (*MockThemeValidator) EXPECT

func (*MockThemeValidator) Validate

func (_mock *MockThemeValidator) Validate(ctx context.Context, theme themegen.Theme) themegen.ValidationReport

Validate provides a mock function for the type MockThemeValidator

type MockThemeValidator_Expecter

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

func (*MockThemeValidator_Expecter) Validate

Validate is a helper method to define mock.On call

  • ctx context.Context
  • theme themegen.Theme

type MockThemeValidator_Validate_Call

type MockThemeValidator_Validate_Call struct {
	*mock.Call
}

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

func (*MockThemeValidator_Validate_Call) Return

func (_c *MockThemeValidator_Validate_Call) Return(validationReport themegen.ValidationReport) *MockThemeValidator_Validate_Call

func (*MockThemeValidator_Validate_Call) Run

func (_c *MockThemeValidator_Validate_Call) Run(run func(ctx context.Context, theme themegen.Theme)) *MockThemeValidator_Validate_Call

func (*MockThemeValidator_Validate_Call) RunAndReturn

func (_c *MockThemeValidator_Validate_Call) RunAndReturn(run func(ctx context.Context, theme themegen.Theme) themegen.ValidationReport) *MockThemeValidator_Validate_Call

Jump to

Keyboard shortcuts

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