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: ? 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 MockBuilder

type MockBuilder struct {
	mock.Mock
}

MockBuilder is an autogenerated mock type for the Builder type

func NewMockBuilder

func NewMockBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBuilder

NewMockBuilder creates a new instance of MockBuilder. 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 (*MockBuilder) Build

func (_mock *MockBuilder) Build(ctx context.Context, project plugingen.Project) (plugingen.BuildResult, error)

Build provides a mock function for the type MockBuilder

func (*MockBuilder) EXPECT

func (_m *MockBuilder) EXPECT() *MockBuilder_Expecter

type MockBuilder_Build_Call

type MockBuilder_Build_Call struct {
	*mock.Call
}

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

func (*MockBuilder_Build_Call) Return

func (_c *MockBuilder_Build_Call) Return(buildResult plugingen.BuildResult, err error) *MockBuilder_Build_Call

func (*MockBuilder_Build_Call) Run

func (_c *MockBuilder_Build_Call) Run(run func(ctx context.Context, project plugingen.Project)) *MockBuilder_Build_Call

func (*MockBuilder_Build_Call) RunAndReturn

func (_c *MockBuilder_Build_Call) RunAndReturn(run func(ctx context.Context, project plugingen.Project) (plugingen.BuildResult, error)) *MockBuilder_Build_Call

type MockBuilder_Expecter

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

func (*MockBuilder_Expecter) Build

func (_e *MockBuilder_Expecter) Build(ctx any, project any) *MockBuilder_Build_Call

Build is a helper method to define mock.On call

  • ctx context.Context
  • project plugingen.Project

type MockPluginGenerationService

type MockPluginGenerationService struct {
	mock.Mock
}

MockPluginGenerationService is an autogenerated mock type for the PluginGenerationService type

func NewMockPluginGenerationService

func NewMockPluginGenerationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPluginGenerationService

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

func (*MockPluginGenerationService) GenerateProject

func (_mock *MockPluginGenerationService) GenerateProject(ctx context.Context, brief plugingen.Brief, sources plugingen.PluginSources) (plugingen.Project, error)

GenerateProject provides a mock function for the type MockPluginGenerationService

func (*MockPluginGenerationService) RepairProject

func (_mock *MockPluginGenerationService) RepairProject(ctx context.Context, brief plugingen.Brief, sources plugingen.PluginSources, project plugingen.Project, problems []string) (plugingen.Project, error)

RepairProject provides a mock function for the type MockPluginGenerationService

type MockPluginGenerationService_Expecter

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

func (*MockPluginGenerationService_Expecter) GenerateProject

GenerateProject is a helper method to define mock.On call

  • ctx context.Context
  • brief plugingen.Brief
  • sources plugingen.PluginSources

func (*MockPluginGenerationService_Expecter) RepairProject

func (_e *MockPluginGenerationService_Expecter) RepairProject(ctx any, brief any, sources any, project any, problems any) *MockPluginGenerationService_RepairProject_Call

RepairProject is a helper method to define mock.On call

  • ctx context.Context
  • brief plugingen.Brief
  • sources plugingen.PluginSources
  • project plugingen.Project
  • problems []string

type MockPluginGenerationService_GenerateProject_Call

type MockPluginGenerationService_GenerateProject_Call struct {
	*mock.Call
}

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

func (*MockPluginGenerationService_GenerateProject_Call) Return

func (*MockPluginGenerationService_GenerateProject_Call) Run

func (_c *MockPluginGenerationService_GenerateProject_Call) Run(run func(ctx context.Context, brief plugingen.Brief, sources plugingen.PluginSources)) *MockPluginGenerationService_GenerateProject_Call

func (*MockPluginGenerationService_GenerateProject_Call) RunAndReturn

func (_c *MockPluginGenerationService_GenerateProject_Call) RunAndReturn(run func(ctx context.Context, brief plugingen.Brief, sources plugingen.PluginSources) (plugingen.Project, error)) *MockPluginGenerationService_GenerateProject_Call

type MockPluginGenerationService_RepairProject_Call

type MockPluginGenerationService_RepairProject_Call struct {
	*mock.Call
}

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

func (*MockPluginGenerationService_RepairProject_Call) Return

func (*MockPluginGenerationService_RepairProject_Call) Run

func (_c *MockPluginGenerationService_RepairProject_Call) Run(run func(ctx context.Context, brief plugingen.Brief, sources plugingen.PluginSources, project plugingen.Project, problems []string)) *MockPluginGenerationService_RepairProject_Call

func (*MockPluginGenerationService_RepairProject_Call) RunAndReturn

func (_c *MockPluginGenerationService_RepairProject_Call) RunAndReturn(run func(ctx context.Context, brief plugingen.Brief, sources plugingen.PluginSources, project plugingen.Project, problems []string) (plugingen.Project, error)) *MockPluginGenerationService_RepairProject_Call

type MockProjectStore

type MockProjectStore struct {
	mock.Mock
}

MockProjectStore is an autogenerated mock type for the ProjectStore type

func NewMockProjectStore

func NewMockProjectStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProjectStore

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

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

Delete provides a mock function for the type MockProjectStore

func (*MockProjectStore) EXPECT

func (*MockProjectStore) Get

func (_mock *MockProjectStore) Get(ctx context.Context, name string) (plugingen.Project, error)

Get provides a mock function for the type MockProjectStore

func (*MockProjectStore) Install

func (_mock *MockProjectStore) Install(ctx context.Context, project plugingen.Project) error

Install provides a mock function for the type MockProjectStore

func (*MockProjectStore) List

func (_mock *MockProjectStore) List(ctx context.Context) ([]plugingen.InstalledProject, error)

List provides a mock function for the type MockProjectStore

func (*MockProjectStore) Zip

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

Zip provides a mock function for the type MockProjectStore

type MockProjectStore_Delete_Call

type MockProjectStore_Delete_Call struct {
	*mock.Call
}

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

func (*MockProjectStore_Delete_Call) Return

func (*MockProjectStore_Delete_Call) Run

func (*MockProjectStore_Delete_Call) RunAndReturn

type MockProjectStore_Expecter

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

func (*MockProjectStore_Expecter) Delete

Delete is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockProjectStore_Expecter) Get

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockProjectStore_Expecter) Install

Install is a helper method to define mock.On call

  • ctx context.Context
  • project plugingen.Project

func (*MockProjectStore_Expecter) List

List is a helper method to define mock.On call

  • ctx context.Context

func (*MockProjectStore_Expecter) Zip

Zip is a helper method to define mock.On call

  • ctx context.Context
  • name string

type MockProjectStore_Get_Call

type MockProjectStore_Get_Call struct {
	*mock.Call
}

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

func (*MockProjectStore_Get_Call) Return

func (_c *MockProjectStore_Get_Call) Return(project plugingen.Project, err error) *MockProjectStore_Get_Call

func (*MockProjectStore_Get_Call) Run

func (*MockProjectStore_Get_Call) RunAndReturn

func (_c *MockProjectStore_Get_Call) RunAndReturn(run func(ctx context.Context, name string) (plugingen.Project, error)) *MockProjectStore_Get_Call

type MockProjectStore_Install_Call

type MockProjectStore_Install_Call struct {
	*mock.Call
}

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

func (*MockProjectStore_Install_Call) Return

func (*MockProjectStore_Install_Call) Run

func (_c *MockProjectStore_Install_Call) Run(run func(ctx context.Context, project plugingen.Project)) *MockProjectStore_Install_Call

func (*MockProjectStore_Install_Call) RunAndReturn

func (_c *MockProjectStore_Install_Call) RunAndReturn(run func(ctx context.Context, project plugingen.Project) error) *MockProjectStore_Install_Call

type MockProjectStore_List_Call

type MockProjectStore_List_Call struct {
	*mock.Call
}

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

func (*MockProjectStore_List_Call) Return

func (_c *MockProjectStore_List_Call) Return(installedProjects []plugingen.InstalledProject, err error) *MockProjectStore_List_Call

func (*MockProjectStore_List_Call) Run

func (*MockProjectStore_List_Call) RunAndReturn

func (_c *MockProjectStore_List_Call) RunAndReturn(run func(ctx context.Context) ([]plugingen.InstalledProject, error)) *MockProjectStore_List_Call

type MockProjectStore_Zip_Call

type MockProjectStore_Zip_Call struct {
	*mock.Call
}

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

func (*MockProjectStore_Zip_Call) Return

func (*MockProjectStore_Zip_Call) Run

func (*MockProjectStore_Zip_Call) RunAndReturn

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

type MockProjectValidator

type MockProjectValidator struct {
	mock.Mock
}

MockProjectValidator is an autogenerated mock type for the ProjectValidator type

func NewMockProjectValidator

func NewMockProjectValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProjectValidator

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

func (*MockProjectValidator) Validate

func (_mock *MockProjectValidator) Validate(ctx context.Context, project plugingen.Project) plugingen.ValidationReport

Validate provides a mock function for the type MockProjectValidator

type MockProjectValidator_Expecter

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

func (*MockProjectValidator_Expecter) Validate

Validate is a helper method to define mock.On call

  • ctx context.Context
  • project plugingen.Project

type MockProjectValidator_Validate_Call

type MockProjectValidator_Validate_Call struct {
	*mock.Call
}

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

func (*MockProjectValidator_Validate_Call) Return

func (_c *MockProjectValidator_Validate_Call) Return(validationReport plugingen.ValidationReport) *MockProjectValidator_Validate_Call

func (*MockProjectValidator_Validate_Call) Run

func (_c *MockProjectValidator_Validate_Call) Run(run func(ctx context.Context, project plugingen.Project)) *MockProjectValidator_Validate_Call

func (*MockProjectValidator_Validate_Call) RunAndReturn

func (_c *MockProjectValidator_Validate_Call) RunAndReturn(run func(ctx context.Context, project plugingen.Project) plugingen.ValidationReport) *MockProjectValidator_Validate_Call

Jump to

Keyboard shortcuts

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