mocks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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 MockThemeActivationStore

type MockThemeActivationStore struct {
	mock.Mock
}

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

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

func (*MockThemeActivationStore_ActiveTheme_Call) RunAndReturn

type MockThemeActivationStore_ClearActive_Call

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

func (*MockThemeActivationStore_ClearActive_Call) RunAndReturn

type MockThemeActivationStore_Expecter

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

func (*MockThemeActivationStore_Expecter) ActiveTheme

ActiveTheme is a helper method to define mock.On call

  • ctx context.Context

func (*MockThemeActivationStore_Expecter) ClearActive

ClearActive is a helper method to define mock.On call

  • ctx context.Context

func (*MockThemeActivationStore_Expecter) SaveActive

SaveActive is a helper method to define mock.On call

  • ctx context.Context
  • name string

type MockThemeActivationStore_SaveActive_Call

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

func (*MockThemeActivationStore_SaveActive_Call) RunAndReturn

type MockThemeReloader

type MockThemeReloader struct {
	mock.Mock
}

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 (*MockThemeReloader) Reload

func (_mock *MockThemeReloader) Reload(ctx context.Context) error

Reload provides a mock function for the type MockThemeReloader

type MockThemeReloader_Expecter

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

func (*MockThemeReloader_Expecter) Reload

Reload is a helper method to define mock.On call

  • ctx context.Context

type MockThemeReloader_Reload_Call

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

func (*MockThemeReloader_Reload_Call) RunAndReturn

type MockThemeService

type MockThemeService struct {
	mock.Mock
}

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

func (*MockThemeService) Zip

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

Zip provides a mock function for the type MockThemeService

type MockThemeService_Delete_Call

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

func (*MockThemeService_Delete_Call) RunAndReturn

type MockThemeService_Expecter

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

func (*MockThemeService_Expecter) Delete

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

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockThemeService_Expecter) List

List is a helper method to define mock.On call

  • ctx context.Context

func (*MockThemeService_Expecter) Validate

Validate is a helper method to define mock.On call

  • ctx context.Context
  • theme themegen.Theme

func (*MockThemeService_Expecter) Zip

Zip is a helper method to define mock.On call

  • ctx context.Context
  • name string

type MockThemeService_Generate_Call

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

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

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

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

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

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

type MockThemeSnapshotter struct {
	mock.Mock
}

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

SnapshotTheme is a helper method to define mock.On call

  • name string

type MockThemeSnapshotter_SnapshotTheme_Call

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

func (*MockThemeSnapshotter_SnapshotTheme_Call) RunAndReturn

Jump to

Keyboard shortcuts

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