Documentation
¶
Index ¶
- type MockBuilder
- type MockBuilder_Build_Call
- func (_c *MockBuilder_Build_Call) Return(buildResult plugingen.BuildResult, err error) *MockBuilder_Build_Call
- func (_c *MockBuilder_Build_Call) Run(run func(ctx context.Context, project plugingen.Project)) *MockBuilder_Build_Call
- func (_c *MockBuilder_Build_Call) RunAndReturn(...) *MockBuilder_Build_Call
- type MockBuilder_Expecter
- type MockPluginGenerationService
- func (_m *MockPluginGenerationService) EXPECT() *MockPluginGenerationService_Expecter
- func (_mock *MockPluginGenerationService) GenerateProject(ctx context.Context, brief plugingen.Brief, sources plugingen.PluginSources) (plugingen.Project, error)
- func (_mock *MockPluginGenerationService) RepairProject(ctx context.Context, brief plugingen.Brief, sources plugingen.PluginSources, ...) (plugingen.Project, error)
- type MockPluginGenerationService_Expecter
- func (_e *MockPluginGenerationService_Expecter) GenerateProject(ctx any, brief any, sources any) *MockPluginGenerationService_GenerateProject_Call
- func (_e *MockPluginGenerationService_Expecter) RepairProject(ctx any, brief any, sources any, project any, problems any) *MockPluginGenerationService_RepairProject_Call
- type MockPluginGenerationService_GenerateProject_Call
- func (_c *MockPluginGenerationService_GenerateProject_Call) Return(project plugingen.Project, err error) *MockPluginGenerationService_GenerateProject_Call
- func (_c *MockPluginGenerationService_GenerateProject_Call) Run(...) *MockPluginGenerationService_GenerateProject_Call
- func (_c *MockPluginGenerationService_GenerateProject_Call) RunAndReturn(...) *MockPluginGenerationService_GenerateProject_Call
- type MockPluginGenerationService_RepairProject_Call
- func (_c *MockPluginGenerationService_RepairProject_Call) Return(project1 plugingen.Project, err error) *MockPluginGenerationService_RepairProject_Call
- func (_c *MockPluginGenerationService_RepairProject_Call) Run(...) *MockPluginGenerationService_RepairProject_Call
- func (_c *MockPluginGenerationService_RepairProject_Call) RunAndReturn(...) *MockPluginGenerationService_RepairProject_Call
- type MockProjectStore
- func (_mock *MockProjectStore) Delete(ctx context.Context, name string) error
- func (_m *MockProjectStore) EXPECT() *MockProjectStore_Expecter
- func (_mock *MockProjectStore) Get(ctx context.Context, name string) (plugingen.Project, error)
- func (_mock *MockProjectStore) Install(ctx context.Context, project plugingen.Project) error
- func (_mock *MockProjectStore) List(ctx context.Context) ([]plugingen.InstalledProject, error)
- func (_mock *MockProjectStore) Zip(ctx context.Context, name string) ([]byte, error)
- type MockProjectStore_Delete_Call
- func (_c *MockProjectStore_Delete_Call) Return(err error) *MockProjectStore_Delete_Call
- func (_c *MockProjectStore_Delete_Call) Run(run func(ctx context.Context, name string)) *MockProjectStore_Delete_Call
- func (_c *MockProjectStore_Delete_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockProjectStore_Delete_Call
- type MockProjectStore_Expecter
- func (_e *MockProjectStore_Expecter) Delete(ctx any, name any) *MockProjectStore_Delete_Call
- func (_e *MockProjectStore_Expecter) Get(ctx any, name any) *MockProjectStore_Get_Call
- func (_e *MockProjectStore_Expecter) Install(ctx any, project any) *MockProjectStore_Install_Call
- func (_e *MockProjectStore_Expecter) List(ctx any) *MockProjectStore_List_Call
- func (_e *MockProjectStore_Expecter) Zip(ctx any, name any) *MockProjectStore_Zip_Call
- type MockProjectStore_Get_Call
- func (_c *MockProjectStore_Get_Call) Return(project plugingen.Project, err error) *MockProjectStore_Get_Call
- func (_c *MockProjectStore_Get_Call) Run(run func(ctx context.Context, name string)) *MockProjectStore_Get_Call
- func (_c *MockProjectStore_Get_Call) RunAndReturn(run func(ctx context.Context, name string) (plugingen.Project, error)) *MockProjectStore_Get_Call
- type MockProjectStore_Install_Call
- func (_c *MockProjectStore_Install_Call) Return(err error) *MockProjectStore_Install_Call
- func (_c *MockProjectStore_Install_Call) Run(run func(ctx context.Context, project plugingen.Project)) *MockProjectStore_Install_Call
- func (_c *MockProjectStore_Install_Call) RunAndReturn(run func(ctx context.Context, project plugingen.Project) error) *MockProjectStore_Install_Call
- type MockProjectStore_List_Call
- func (_c *MockProjectStore_List_Call) Return(installedProjects []plugingen.InstalledProject, err error) *MockProjectStore_List_Call
- func (_c *MockProjectStore_List_Call) Run(run func(ctx context.Context)) *MockProjectStore_List_Call
- func (_c *MockProjectStore_List_Call) RunAndReturn(run func(ctx context.Context) ([]plugingen.InstalledProject, error)) *MockProjectStore_List_Call
- type MockProjectStore_Zip_Call
- func (_c *MockProjectStore_Zip_Call) Return(bytes []byte, err error) *MockProjectStore_Zip_Call
- func (_c *MockProjectStore_Zip_Call) Run(run func(ctx context.Context, name string)) *MockProjectStore_Zip_Call
- func (_c *MockProjectStore_Zip_Call) RunAndReturn(run func(ctx context.Context, name string) ([]byte, error)) *MockProjectStore_Zip_Call
- type MockProjectValidator
- type MockProjectValidator_Expecter
- type MockProjectValidator_Validate_Call
- func (_c *MockProjectValidator_Validate_Call) Return(validationReport plugingen.ValidationReport) *MockProjectValidator_Validate_Call
- func (_c *MockProjectValidator_Validate_Call) Run(run func(ctx context.Context, project plugingen.Project)) *MockProjectValidator_Validate_Call
- func (_c *MockProjectValidator_Validate_Call) RunAndReturn(...) *MockProjectValidator_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBuilder ¶
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 ¶
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 ¶
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 (_m *MockPluginGenerationService) EXPECT() *MockPluginGenerationService_Expecter
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 ¶
func (_e *MockPluginGenerationService_Expecter) GenerateProject(ctx any, brief any, sources any) *MockPluginGenerationService_GenerateProject_Call
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 ¶
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 (_c *MockPluginGenerationService_GenerateProject_Call) Return(project plugingen.Project, err error) *MockPluginGenerationService_GenerateProject_Call
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 ¶
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 (_c *MockPluginGenerationService_RepairProject_Call) Return(project1 plugingen.Project, err error) *MockPluginGenerationService_RepairProject_Call
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 ¶
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 (_m *MockProjectStore) EXPECT() *MockProjectStore_Expecter
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
type MockProjectStore_Delete_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 (_c *MockProjectStore_Delete_Call) Return(err error) *MockProjectStore_Delete_Call
func (*MockProjectStore_Delete_Call) Run ¶
func (_c *MockProjectStore_Delete_Call) Run(run func(ctx context.Context, name string)) *MockProjectStore_Delete_Call
func (*MockProjectStore_Delete_Call) RunAndReturn ¶
func (_c *MockProjectStore_Delete_Call) RunAndReturn(run func(ctx context.Context, name string) error) *MockProjectStore_Delete_Call
type MockProjectStore_Expecter ¶
type MockProjectStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProjectStore_Expecter) Delete ¶
func (_e *MockProjectStore_Expecter) Delete(ctx any, name any) *MockProjectStore_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockProjectStore_Expecter) Get ¶
func (_e *MockProjectStore_Expecter) Get(ctx any, name any) *MockProjectStore_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- name string
func (*MockProjectStore_Expecter) Install ¶
func (_e *MockProjectStore_Expecter) Install(ctx any, project any) *MockProjectStore_Install_Call
Install is a helper method to define mock.On call
- ctx context.Context
- project plugingen.Project
func (*MockProjectStore_Expecter) List ¶
func (_e *MockProjectStore_Expecter) List(ctx any) *MockProjectStore_List_Call
List is a helper method to define mock.On call
- ctx context.Context
func (*MockProjectStore_Expecter) Zip ¶
func (_e *MockProjectStore_Expecter) Zip(ctx any, name any) *MockProjectStore_Zip_Call
Zip is a helper method to define mock.On call
- ctx context.Context
- name string
type MockProjectStore_Get_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 (_c *MockProjectStore_Get_Call) Run(run func(ctx context.Context, name string)) *MockProjectStore_Get_Call
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 ¶
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 (_c *MockProjectStore_Install_Call) Return(err error) *MockProjectStore_Install_Call
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 ¶
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 (_c *MockProjectStore_List_Call) Run(run func(ctx context.Context)) *MockProjectStore_List_Call
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 ¶
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 (_c *MockProjectStore_Zip_Call) Return(bytes []byte, err error) *MockProjectStore_Zip_Call
func (*MockProjectStore_Zip_Call) Run ¶
func (_c *MockProjectStore_Zip_Call) Run(run func(ctx context.Context, name string)) *MockProjectStore_Zip_Call
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 ¶
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 (_m *MockProjectValidator) EXPECT() *MockProjectValidator_Expecter
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 ¶
func (_e *MockProjectValidator_Expecter) Validate(ctx any, project any) *MockProjectValidator_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- project plugingen.Project
type MockProjectValidator_Validate_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