Documentation
¶
Index ¶
- type MockActiveThemeState
- type MockActiveThemeState_ActiveTheme_Call
- func (_c *MockActiveThemeState_ActiveTheme_Call) Return(s string) *MockActiveThemeState_ActiveTheme_Call
- func (_c *MockActiveThemeState_ActiveTheme_Call) Run(run func(ctx context.Context)) *MockActiveThemeState_ActiveTheme_Call
- func (_c *MockActiveThemeState_ActiveTheme_Call) RunAndReturn(run func(ctx context.Context) string) *MockActiveThemeState_ActiveTheme_Call
- type MockActiveThemeState_Expecter
- type MockThemeGenerationService
- func (_m *MockThemeGenerationService) EXPECT() *MockThemeGenerationService_Expecter
- func (_mock *MockThemeGenerationService) GenerateTheme(ctx context.Context, brief themegen.Brief, edition themegen.Edition, ...) (themegen.Theme, error)
- func (_mock *MockThemeGenerationService) RepairTheme(ctx context.Context, brief themegen.Brief, sources themegen.ThemeSources, ...) (themegen.Theme, error)
- type MockThemeGenerationService_Expecter
- func (_e *MockThemeGenerationService_Expecter) GenerateTheme(ctx any, brief any, edition any, sources any) *MockThemeGenerationService_GenerateTheme_Call
- func (_e *MockThemeGenerationService_Expecter) RepairTheme(ctx any, brief any, sources any, theme any, problems any) *MockThemeGenerationService_RepairTheme_Call
- type MockThemeGenerationService_GenerateTheme_Call
- func (_c *MockThemeGenerationService_GenerateTheme_Call) Return(theme themegen.Theme, err error) *MockThemeGenerationService_GenerateTheme_Call
- func (_c *MockThemeGenerationService_GenerateTheme_Call) Run(...) *MockThemeGenerationService_GenerateTheme_Call
- func (_c *MockThemeGenerationService_GenerateTheme_Call) RunAndReturn(...) *MockThemeGenerationService_GenerateTheme_Call
- type MockThemeGenerationService_RepairTheme_Call
- func (_c *MockThemeGenerationService_RepairTheme_Call) Return(theme1 themegen.Theme, err error) *MockThemeGenerationService_RepairTheme_Call
- func (_c *MockThemeGenerationService_RepairTheme_Call) Run(...) *MockThemeGenerationService_RepairTheme_Call
- func (_c *MockThemeGenerationService_RepairTheme_Call) RunAndReturn(...) *MockThemeGenerationService_RepairTheme_Call
- type MockThemeStore
- func (_mock *MockThemeStore) Delete(ctx context.Context, name string) error
- func (_m *MockThemeStore) EXPECT() *MockThemeStore_Expecter
- func (_mock *MockThemeStore) Get(ctx context.Context, name string) (themegen.Theme, error)
- func (_mock *MockThemeStore) Install(ctx context.Context, theme themegen.Theme) error
- func (_mock *MockThemeStore) List(ctx context.Context) ([]themegen.InstalledTheme, error)
- func (_mock *MockThemeStore) Zip(ctx context.Context, name string) ([]byte, error)
- type MockThemeStore_Delete_Call
- func (_c *MockThemeStore_Delete_Call) Return(err error) *MockThemeStore_Delete_Call
- func (_c *MockThemeStore_Delete_Call) Run(run func(ctx context.Context, name string)) *MockThemeStore_Delete_Call
- func (_c *MockThemeStore_Delete_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockThemeStore_Delete_Call
- type MockThemeStore_Expecter
- func (_e *MockThemeStore_Expecter) Delete(ctx any, name any) *MockThemeStore_Delete_Call
- func (_e *MockThemeStore_Expecter) Get(ctx any, name any) *MockThemeStore_Get_Call
- func (_e *MockThemeStore_Expecter) Install(ctx any, theme any) *MockThemeStore_Install_Call
- func (_e *MockThemeStore_Expecter) List(ctx any) *MockThemeStore_List_Call
- func (_e *MockThemeStore_Expecter) Zip(ctx any, name any) *MockThemeStore_Zip_Call
- type MockThemeStore_Get_Call
- func (_c *MockThemeStore_Get_Call) Return(theme themegen.Theme, err error) *MockThemeStore_Get_Call
- func (_c *MockThemeStore_Get_Call) Run(run func(ctx context.Context, name string)) *MockThemeStore_Get_Call
- func (_c *MockThemeStore_Get_Call) RunAndReturn(run func(ctx context.Context, name string) (themegen.Theme, error)) *MockThemeStore_Get_Call
- type MockThemeStore_Install_Call
- func (_c *MockThemeStore_Install_Call) Return(err error) *MockThemeStore_Install_Call
- func (_c *MockThemeStore_Install_Call) Run(run func(ctx context.Context, theme themegen.Theme)) *MockThemeStore_Install_Call
- func (_c *MockThemeStore_Install_Call) RunAndReturn(run func(ctx context.Context, theme themegen.Theme) error) *MockThemeStore_Install_Call
- type MockThemeStore_List_Call
- func (_c *MockThemeStore_List_Call) Return(installedThemes []themegen.InstalledTheme, err error) *MockThemeStore_List_Call
- func (_c *MockThemeStore_List_Call) Run(run func(ctx context.Context)) *MockThemeStore_List_Call
- func (_c *MockThemeStore_List_Call) RunAndReturn(run func(ctx context.Context) ([]themegen.InstalledTheme, error)) *MockThemeStore_List_Call
- type MockThemeStore_Zip_Call
- func (_c *MockThemeStore_Zip_Call) Return(bytes []byte, err error) *MockThemeStore_Zip_Call
- func (_c *MockThemeStore_Zip_Call) Run(run func(ctx context.Context, name string)) *MockThemeStore_Zip_Call
- func (_c *MockThemeStore_Zip_Call) RunAndReturn(run func(ctx context.Context, name string) ([]byte, error)) *MockThemeStore_Zip_Call
- type MockThemeValidator
- type MockThemeValidator_Expecter
- type MockThemeValidator_Validate_Call
- func (_c *MockThemeValidator_Validate_Call) Return(validationReport themegen.ValidationReport) *MockThemeValidator_Validate_Call
- func (_c *MockThemeValidator_Validate_Call) Run(run func(ctx context.Context, theme themegen.Theme)) *MockThemeValidator_Validate_Call
- func (_c *MockThemeValidator_Validate_Call) RunAndReturn(run func(ctx context.Context, theme themegen.Theme) themegen.ValidationReport) *MockThemeValidator_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockActiveThemeState ¶
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 ¶
func (_m *MockActiveThemeState) EXPECT() *MockActiveThemeState_Expecter
type MockActiveThemeState_ActiveTheme_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 (_c *MockActiveThemeState_ActiveTheme_Call) Return(s string) *MockActiveThemeState_ActiveTheme_Call
func (*MockActiveThemeState_ActiveTheme_Call) Run ¶
func (_c *MockActiveThemeState_ActiveTheme_Call) Run(run func(ctx context.Context)) *MockActiveThemeState_ActiveTheme_Call
func (*MockActiveThemeState_ActiveTheme_Call) RunAndReturn ¶
func (_c *MockActiveThemeState_ActiveTheme_Call) RunAndReturn(run func(ctx context.Context) string) *MockActiveThemeState_ActiveTheme_Call
type MockActiveThemeState_Expecter ¶
type MockActiveThemeState_Expecter struct {
// contains filtered or unexported fields
}
func (*MockActiveThemeState_Expecter) ActiveTheme ¶
func (_e *MockActiveThemeState_Expecter) ActiveTheme(ctx any) *MockActiveThemeState_ActiveTheme_Call
ActiveTheme is a helper method to define mock.On call
- ctx context.Context
type MockThemeGenerationService ¶
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 (_m *MockThemeGenerationService) EXPECT() *MockThemeGenerationService_Expecter
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 ¶
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 (_c *MockThemeGenerationService_GenerateTheme_Call) Return(theme themegen.Theme, err error) *MockThemeGenerationService_GenerateTheme_Call
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 ¶
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 (_c *MockThemeGenerationService_RepairTheme_Call) Return(theme1 themegen.Theme, err error) *MockThemeGenerationService_RepairTheme_Call
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 ¶
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 (_m *MockThemeStore) EXPECT() *MockThemeStore_Expecter
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
type MockThemeStore_Delete_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 (_c *MockThemeStore_Delete_Call) Return(err error) *MockThemeStore_Delete_Call
func (*MockThemeStore_Delete_Call) Run ¶
func (_c *MockThemeStore_Delete_Call) Run(run func(ctx context.Context, name string)) *MockThemeStore_Delete_Call
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 ¶
func (_e *MockThemeStore_Expecter) Delete(ctx any, name any) *MockThemeStore_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockThemeStore_Expecter) Get ¶
func (_e *MockThemeStore_Expecter) Get(ctx any, name any) *MockThemeStore_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockThemeStore_Expecter) Install ¶
func (_e *MockThemeStore_Expecter) Install(ctx any, theme any) *MockThemeStore_Install_Call
Install is a helper method to define mock.On call
- ctx context.Context
- theme themegen.Theme
func (*MockThemeStore_Expecter) List ¶
func (_e *MockThemeStore_Expecter) List(ctx any) *MockThemeStore_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*MockThemeStore_Expecter) Zip ¶
func (_e *MockThemeStore_Expecter) Zip(ctx any, name any) *MockThemeStore_Zip_Call
Zip is a helper method to define mock.On call
- ctx context.Context
- name string
type MockThemeStore_Get_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 (_c *MockThemeStore_Get_Call) Run(run func(ctx context.Context, name string)) *MockThemeStore_Get_Call
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 ¶
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 (_c *MockThemeStore_Install_Call) Return(err error) *MockThemeStore_Install_Call
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 ¶
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 (_c *MockThemeStore_List_Call) Run(run func(ctx context.Context)) *MockThemeStore_List_Call
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 ¶
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 (_c *MockThemeStore_Zip_Call) Run(run func(ctx context.Context, name string)) *MockThemeStore_Zip_Call
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 ¶
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 (_m *MockThemeValidator) EXPECT() *MockThemeValidator_Expecter
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 ¶
func (_e *MockThemeValidator_Expecter) Validate(ctx any, theme any) *MockThemeValidator_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- theme themegen.Theme
type MockThemeValidator_Validate_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