Documentation
¶
Index ¶
- type MockThemeActivationStore
- func (_mock *MockThemeActivationStore) ActiveTheme(ctx context.Context) string
- func (_mock *MockThemeActivationStore) ClearActive(ctx context.Context) error
- func (_m *MockThemeActivationStore) EXPECT() *MockThemeActivationStore_Expecter
- func (_mock *MockThemeActivationStore) SaveActive(ctx context.Context, name string) error
- type MockThemeActivationStore_ActiveTheme_Call
- func (_c *MockThemeActivationStore_ActiveTheme_Call) Return(s string) *MockThemeActivationStore_ActiveTheme_Call
- func (_c *MockThemeActivationStore_ActiveTheme_Call) Run(run func(ctx context.Context)) *MockThemeActivationStore_ActiveTheme_Call
- func (_c *MockThemeActivationStore_ActiveTheme_Call) RunAndReturn(run func(ctx context.Context) string) *MockThemeActivationStore_ActiveTheme_Call
- type MockThemeActivationStore_ClearActive_Call
- func (_c *MockThemeActivationStore_ClearActive_Call) Return(err error) *MockThemeActivationStore_ClearActive_Call
- func (_c *MockThemeActivationStore_ClearActive_Call) Run(run func(ctx context.Context)) *MockThemeActivationStore_ClearActive_Call
- func (_c *MockThemeActivationStore_ClearActive_Call) RunAndReturn(run func(ctx context.Context) error) *MockThemeActivationStore_ClearActive_Call
- type MockThemeActivationStore_Expecter
- func (_e *MockThemeActivationStore_Expecter) ActiveTheme(ctx any) *MockThemeActivationStore_ActiveTheme_Call
- func (_e *MockThemeActivationStore_Expecter) ClearActive(ctx any) *MockThemeActivationStore_ClearActive_Call
- func (_e *MockThemeActivationStore_Expecter) SaveActive(ctx any, name any) *MockThemeActivationStore_SaveActive_Call
- type MockThemeActivationStore_SaveActive_Call
- func (_c *MockThemeActivationStore_SaveActive_Call) Return(err error) *MockThemeActivationStore_SaveActive_Call
- func (_c *MockThemeActivationStore_SaveActive_Call) Run(run func(ctx context.Context, name string)) *MockThemeActivationStore_SaveActive_Call
- func (_c *MockThemeActivationStore_SaveActive_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockThemeActivationStore_SaveActive_Call
- type MockThemeReloader
- type MockThemeReloader_Expecter
- type MockThemeReloader_Reload_Call
- func (_c *MockThemeReloader_Reload_Call) Return(err error) *MockThemeReloader_Reload_Call
- func (_c *MockThemeReloader_Reload_Call) Run(run func(ctx context.Context)) *MockThemeReloader_Reload_Call
- func (_c *MockThemeReloader_Reload_Call) RunAndReturn(run func(ctx context.Context) error) *MockThemeReloader_Reload_Call
- type MockThemeService
- func (_mock *MockThemeService) Delete(ctx context.Context, name string) error
- func (_m *MockThemeService) EXPECT() *MockThemeService_Expecter
- func (_mock *MockThemeService) Generate(ctx context.Context, brief themegen.Brief, edition themegen.Edition) (themegen.Theme, themegen.ValidationReport, error)
- func (_mock *MockThemeService) Get(ctx context.Context, name string) (themegen.Theme, error)
- func (_mock *MockThemeService) List(ctx context.Context) ([]themegen.InstalledTheme, error)
- func (_mock *MockThemeService) Validate(ctx context.Context, theme themegen.Theme) themegen.ValidationReport
- func (_mock *MockThemeService) Zip(ctx context.Context, name string) ([]byte, error)
- type MockThemeService_Delete_Call
- func (_c *MockThemeService_Delete_Call) Return(err error) *MockThemeService_Delete_Call
- func (_c *MockThemeService_Delete_Call) Run(run func(ctx context.Context, name string)) *MockThemeService_Delete_Call
- func (_c *MockThemeService_Delete_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockThemeService_Delete_Call
- type MockThemeService_Expecter
- func (_e *MockThemeService_Expecter) Delete(ctx any, name any) *MockThemeService_Delete_Call
- func (_e *MockThemeService_Expecter) Generate(ctx any, brief any, edition any) *MockThemeService_Generate_Call
- func (_e *MockThemeService_Expecter) Get(ctx any, name any) *MockThemeService_Get_Call
- func (_e *MockThemeService_Expecter) List(ctx any) *MockThemeService_List_Call
- func (_e *MockThemeService_Expecter) Validate(ctx any, theme any) *MockThemeService_Validate_Call
- func (_e *MockThemeService_Expecter) Zip(ctx any, name any) *MockThemeService_Zip_Call
- type MockThemeService_Generate_Call
- func (_c *MockThemeService_Generate_Call) Return(theme themegen.Theme, validationReport themegen.ValidationReport, err error) *MockThemeService_Generate_Call
- func (_c *MockThemeService_Generate_Call) Run(run func(ctx context.Context, brief themegen.Brief, edition themegen.Edition)) *MockThemeService_Generate_Call
- func (_c *MockThemeService_Generate_Call) RunAndReturn(...) *MockThemeService_Generate_Call
- type MockThemeService_Get_Call
- func (_c *MockThemeService_Get_Call) Return(theme themegen.Theme, err error) *MockThemeService_Get_Call
- func (_c *MockThemeService_Get_Call) Run(run func(ctx context.Context, name string)) *MockThemeService_Get_Call
- func (_c *MockThemeService_Get_Call) RunAndReturn(run func(ctx context.Context, name string) (themegen.Theme, error)) *MockThemeService_Get_Call
- type MockThemeService_List_Call
- func (_c *MockThemeService_List_Call) Return(installedThemes []themegen.InstalledTheme, err error) *MockThemeService_List_Call
- func (_c *MockThemeService_List_Call) Run(run func(ctx context.Context)) *MockThemeService_List_Call
- func (_c *MockThemeService_List_Call) RunAndReturn(run func(ctx context.Context) ([]themegen.InstalledTheme, error)) *MockThemeService_List_Call
- type MockThemeService_Validate_Call
- func (_c *MockThemeService_Validate_Call) Return(validationReport themegen.ValidationReport) *MockThemeService_Validate_Call
- func (_c *MockThemeService_Validate_Call) Run(run func(ctx context.Context, theme themegen.Theme)) *MockThemeService_Validate_Call
- func (_c *MockThemeService_Validate_Call) RunAndReturn(run func(ctx context.Context, theme themegen.Theme) themegen.ValidationReport) *MockThemeService_Validate_Call
- type MockThemeService_Zip_Call
- func (_c *MockThemeService_Zip_Call) Return(bytes []byte, err error) *MockThemeService_Zip_Call
- func (_c *MockThemeService_Zip_Call) Run(run func(ctx context.Context, name string)) *MockThemeService_Zip_Call
- func (_c *MockThemeService_Zip_Call) RunAndReturn(run func(ctx context.Context, name string) ([]byte, error)) *MockThemeService_Zip_Call
- type MockThemeSnapshotter
- type MockThemeSnapshotter_Expecter
- type MockThemeSnapshotter_SnapshotTheme_Call
- func (_c *MockThemeSnapshotter_SnapshotTheme_Call) Return(s string, err error) *MockThemeSnapshotter_SnapshotTheme_Call
- func (_c *MockThemeSnapshotter_SnapshotTheme_Call) Run(run func(name string)) *MockThemeSnapshotter_SnapshotTheme_Call
- func (_c *MockThemeSnapshotter_SnapshotTheme_Call) RunAndReturn(run func(name string) (string, error)) *MockThemeSnapshotter_SnapshotTheme_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockThemeActivationStore ¶
MockThemeActivationStore is an autogenerated mock type for the ThemeActivationStore type
func NewMockThemeActivationStore ¶
func NewMockThemeActivationStore(t interface {
mock.TestingT
Cleanup(func())
}) *MockThemeActivationStore
NewMockThemeActivationStore creates a new instance of MockThemeActivationStore. 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 (*MockThemeActivationStore) ActiveTheme ¶
func (_mock *MockThemeActivationStore) ActiveTheme(ctx context.Context) string
ActiveTheme provides a mock function for the type MockThemeActivationStore
func (*MockThemeActivationStore) ClearActive ¶
func (_mock *MockThemeActivationStore) ClearActive(ctx context.Context) error
ClearActive provides a mock function for the type MockThemeActivationStore
func (*MockThemeActivationStore) EXPECT ¶
func (_m *MockThemeActivationStore) EXPECT() *MockThemeActivationStore_Expecter
func (*MockThemeActivationStore) SaveActive ¶
func (_mock *MockThemeActivationStore) SaveActive(ctx context.Context, name string) error
SaveActive provides a mock function for the type MockThemeActivationStore
type MockThemeActivationStore_ActiveTheme_Call ¶
MockThemeActivationStore_ActiveTheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ActiveTheme'
func (*MockThemeActivationStore_ActiveTheme_Call) Return ¶
func (_c *MockThemeActivationStore_ActiveTheme_Call) Return(s string) *MockThemeActivationStore_ActiveTheme_Call
func (*MockThemeActivationStore_ActiveTheme_Call) Run ¶
func (_c *MockThemeActivationStore_ActiveTheme_Call) Run(run func(ctx context.Context)) *MockThemeActivationStore_ActiveTheme_Call
func (*MockThemeActivationStore_ActiveTheme_Call) RunAndReturn ¶
func (_c *MockThemeActivationStore_ActiveTheme_Call) RunAndReturn(run func(ctx context.Context) string) *MockThemeActivationStore_ActiveTheme_Call
type MockThemeActivationStore_ClearActive_Call ¶
MockThemeActivationStore_ClearActive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearActive'
func (*MockThemeActivationStore_ClearActive_Call) Return ¶
func (_c *MockThemeActivationStore_ClearActive_Call) Return(err error) *MockThemeActivationStore_ClearActive_Call
func (*MockThemeActivationStore_ClearActive_Call) Run ¶
func (_c *MockThemeActivationStore_ClearActive_Call) Run(run func(ctx context.Context)) *MockThemeActivationStore_ClearActive_Call
func (*MockThemeActivationStore_ClearActive_Call) RunAndReturn ¶
func (_c *MockThemeActivationStore_ClearActive_Call) RunAndReturn(run func(ctx context.Context) error) *MockThemeActivationStore_ClearActive_Call
type MockThemeActivationStore_Expecter ¶
type MockThemeActivationStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockThemeActivationStore_Expecter) ActiveTheme ¶
func (_e *MockThemeActivationStore_Expecter) ActiveTheme(ctx any) *MockThemeActivationStore_ActiveTheme_Call
ActiveTheme is a helper method to define mock.On call
- ctx context.Context
func (*MockThemeActivationStore_Expecter) ClearActive ¶
func (_e *MockThemeActivationStore_Expecter) ClearActive(ctx any) *MockThemeActivationStore_ClearActive_Call
ClearActive is a helper method to define mock.On call
- ctx context.Context
func (*MockThemeActivationStore_Expecter) SaveActive ¶
func (_e *MockThemeActivationStore_Expecter) SaveActive(ctx any, name any) *MockThemeActivationStore_SaveActive_Call
SaveActive is a helper method to define mock.On call
- ctx context.Context
- name string
type MockThemeActivationStore_SaveActive_Call ¶
MockThemeActivationStore_SaveActive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveActive'
func (*MockThemeActivationStore_SaveActive_Call) Return ¶
func (_c *MockThemeActivationStore_SaveActive_Call) Return(err error) *MockThemeActivationStore_SaveActive_Call
func (*MockThemeActivationStore_SaveActive_Call) Run ¶
func (_c *MockThemeActivationStore_SaveActive_Call) Run(run func(ctx context.Context, name string)) *MockThemeActivationStore_SaveActive_Call
func (*MockThemeActivationStore_SaveActive_Call) RunAndReturn ¶
func (_c *MockThemeActivationStore_SaveActive_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockThemeActivationStore_SaveActive_Call
type MockThemeReloader ¶
MockThemeReloader is an autogenerated mock type for the ThemeReloader type
func NewMockThemeReloader ¶
func NewMockThemeReloader(t interface {
mock.TestingT
Cleanup(func())
}) *MockThemeReloader
NewMockThemeReloader creates a new instance of MockThemeReloader. 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 (*MockThemeReloader) EXPECT ¶
func (_m *MockThemeReloader) EXPECT() *MockThemeReloader_Expecter
type MockThemeReloader_Expecter ¶
type MockThemeReloader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockThemeReloader_Expecter) Reload ¶
func (_e *MockThemeReloader_Expecter) Reload(ctx any) *MockThemeReloader_Reload_Call
Reload is a helper method to define mock.On call
- ctx context.Context
type MockThemeReloader_Reload_Call ¶
MockThemeReloader_Reload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reload'
func (*MockThemeReloader_Reload_Call) Return ¶
func (_c *MockThemeReloader_Reload_Call) Return(err error) *MockThemeReloader_Reload_Call
func (*MockThemeReloader_Reload_Call) Run ¶
func (_c *MockThemeReloader_Reload_Call) Run(run func(ctx context.Context)) *MockThemeReloader_Reload_Call
func (*MockThemeReloader_Reload_Call) RunAndReturn ¶
func (_c *MockThemeReloader_Reload_Call) RunAndReturn(run func(ctx context.Context) error) *MockThemeReloader_Reload_Call
type MockThemeService ¶
MockThemeService is an autogenerated mock type for the ThemeService type
func NewMockThemeService ¶
func NewMockThemeService(t interface {
mock.TestingT
Cleanup(func())
}) *MockThemeService
NewMockThemeService creates a new instance of MockThemeService. 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 (*MockThemeService) Delete ¶
func (_mock *MockThemeService) Delete(ctx context.Context, name string) error
Delete provides a mock function for the type MockThemeService
func (*MockThemeService) EXPECT ¶
func (_m *MockThemeService) EXPECT() *MockThemeService_Expecter
func (*MockThemeService) Generate ¶
func (_mock *MockThemeService) Generate(ctx context.Context, brief themegen.Brief, edition themegen.Edition) (themegen.Theme, themegen.ValidationReport, error)
Generate provides a mock function for the type MockThemeService
func (*MockThemeService) Get ¶
func (_mock *MockThemeService) Get(ctx context.Context, name string) (themegen.Theme, error)
Get provides a mock function for the type MockThemeService
func (*MockThemeService) List ¶
func (_mock *MockThemeService) List(ctx context.Context) ([]themegen.InstalledTheme, error)
List provides a mock function for the type MockThemeService
func (*MockThemeService) Validate ¶
func (_mock *MockThemeService) Validate(ctx context.Context, theme themegen.Theme) themegen.ValidationReport
Validate provides a mock function for the type MockThemeService
type MockThemeService_Delete_Call ¶
MockThemeService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockThemeService_Delete_Call) Return ¶
func (_c *MockThemeService_Delete_Call) Return(err error) *MockThemeService_Delete_Call
func (*MockThemeService_Delete_Call) Run ¶
func (_c *MockThemeService_Delete_Call) Run(run func(ctx context.Context, name string)) *MockThemeService_Delete_Call
func (*MockThemeService_Delete_Call) RunAndReturn ¶
func (_c *MockThemeService_Delete_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockThemeService_Delete_Call
type MockThemeService_Expecter ¶
type MockThemeService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockThemeService_Expecter) Delete ¶
func (_e *MockThemeService_Expecter) Delete(ctx any, name any) *MockThemeService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockThemeService_Expecter) Generate ¶
func (_e *MockThemeService_Expecter) Generate(ctx any, brief any, edition any) *MockThemeService_Generate_Call
Generate is a helper method to define mock.On call
- ctx context.Context
- brief themegen.Brief
- edition themegen.Edition
func (*MockThemeService_Expecter) Get ¶
func (_e *MockThemeService_Expecter) Get(ctx any, name any) *MockThemeService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockThemeService_Expecter) List ¶
func (_e *MockThemeService_Expecter) List(ctx any) *MockThemeService_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*MockThemeService_Expecter) Validate ¶
func (_e *MockThemeService_Expecter) Validate(ctx any, theme any) *MockThemeService_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- theme themegen.Theme
func (*MockThemeService_Expecter) Zip ¶
func (_e *MockThemeService_Expecter) Zip(ctx any, name any) *MockThemeService_Zip_Call
Zip is a helper method to define mock.On call
- ctx context.Context
- name string
type MockThemeService_Generate_Call ¶
MockThemeService_Generate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Generate'
func (*MockThemeService_Generate_Call) Return ¶
func (_c *MockThemeService_Generate_Call) Return(theme themegen.Theme, validationReport themegen.ValidationReport, err error) *MockThemeService_Generate_Call
func (*MockThemeService_Generate_Call) Run ¶
func (_c *MockThemeService_Generate_Call) Run(run func(ctx context.Context, brief themegen.Brief, edition themegen.Edition)) *MockThemeService_Generate_Call
func (*MockThemeService_Generate_Call) RunAndReturn ¶
func (_c *MockThemeService_Generate_Call) RunAndReturn(run func(ctx context.Context, brief themegen.Brief, edition themegen.Edition) (themegen.Theme, themegen.ValidationReport, error)) *MockThemeService_Generate_Call
type MockThemeService_Get_Call ¶
MockThemeService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockThemeService_Get_Call) Return ¶
func (_c *MockThemeService_Get_Call) Return(theme themegen.Theme, err error) *MockThemeService_Get_Call
func (*MockThemeService_Get_Call) Run ¶
func (_c *MockThemeService_Get_Call) Run(run func(ctx context.Context, name string)) *MockThemeService_Get_Call
func (*MockThemeService_Get_Call) RunAndReturn ¶
func (_c *MockThemeService_Get_Call) RunAndReturn(run func(ctx context.Context, name string) (themegen.Theme, error)) *MockThemeService_Get_Call
type MockThemeService_List_Call ¶
MockThemeService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockThemeService_List_Call) Return ¶
func (_c *MockThemeService_List_Call) Return(installedThemes []themegen.InstalledTheme, err error) *MockThemeService_List_Call
func (*MockThemeService_List_Call) Run ¶
func (_c *MockThemeService_List_Call) Run(run func(ctx context.Context)) *MockThemeService_List_Call
func (*MockThemeService_List_Call) RunAndReturn ¶
func (_c *MockThemeService_List_Call) RunAndReturn(run func(ctx context.Context) ([]themegen.InstalledTheme, error)) *MockThemeService_List_Call
type MockThemeService_Validate_Call ¶
MockThemeService_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*MockThemeService_Validate_Call) Return ¶
func (_c *MockThemeService_Validate_Call) Return(validationReport themegen.ValidationReport) *MockThemeService_Validate_Call
func (*MockThemeService_Validate_Call) Run ¶
func (_c *MockThemeService_Validate_Call) Run(run func(ctx context.Context, theme themegen.Theme)) *MockThemeService_Validate_Call
func (*MockThemeService_Validate_Call) RunAndReturn ¶
func (_c *MockThemeService_Validate_Call) RunAndReturn(run func(ctx context.Context, theme themegen.Theme) themegen.ValidationReport) *MockThemeService_Validate_Call
type MockThemeService_Zip_Call ¶
MockThemeService_Zip_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Zip'
func (*MockThemeService_Zip_Call) Return ¶
func (_c *MockThemeService_Zip_Call) Return(bytes []byte, err error) *MockThemeService_Zip_Call
func (*MockThemeService_Zip_Call) Run ¶
func (_c *MockThemeService_Zip_Call) Run(run func(ctx context.Context, name string)) *MockThemeService_Zip_Call
func (*MockThemeService_Zip_Call) RunAndReturn ¶
func (_c *MockThemeService_Zip_Call) RunAndReturn(run func(ctx context.Context, name string) ([]byte, error)) *MockThemeService_Zip_Call
type MockThemeSnapshotter ¶
MockThemeSnapshotter is an autogenerated mock type for the ThemeSnapshotter type
func NewMockThemeSnapshotter ¶
func NewMockThemeSnapshotter(t interface {
mock.TestingT
Cleanup(func())
}) *MockThemeSnapshotter
NewMockThemeSnapshotter creates a new instance of MockThemeSnapshotter. 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 (*MockThemeSnapshotter) EXPECT ¶
func (_m *MockThemeSnapshotter) EXPECT() *MockThemeSnapshotter_Expecter
func (*MockThemeSnapshotter) SnapshotTheme ¶
func (_mock *MockThemeSnapshotter) SnapshotTheme(name string) (string, error)
SnapshotTheme provides a mock function for the type MockThemeSnapshotter
type MockThemeSnapshotter_Expecter ¶
type MockThemeSnapshotter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockThemeSnapshotter_Expecter) SnapshotTheme ¶
func (_e *MockThemeSnapshotter_Expecter) SnapshotTheme(name any) *MockThemeSnapshotter_SnapshotTheme_Call
SnapshotTheme is a helper method to define mock.On call
- name string
type MockThemeSnapshotter_SnapshotTheme_Call ¶
MockThemeSnapshotter_SnapshotTheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SnapshotTheme'
func (*MockThemeSnapshotter_SnapshotTheme_Call) Return ¶
func (_c *MockThemeSnapshotter_SnapshotTheme_Call) Return(s string, err error) *MockThemeSnapshotter_SnapshotTheme_Call
func (*MockThemeSnapshotter_SnapshotTheme_Call) Run ¶
func (_c *MockThemeSnapshotter_SnapshotTheme_Call) Run(run func(name string)) *MockThemeSnapshotter_SnapshotTheme_Call
func (*MockThemeSnapshotter_SnapshotTheme_Call) RunAndReturn ¶
func (_c *MockThemeSnapshotter_SnapshotTheme_Call) RunAndReturn(run func(name string) (string, error)) *MockThemeSnapshotter_SnapshotTheme_Call