Documentation
¶
Index ¶
- type MockApplier
- func (_mock *MockApplier) Applied(ctx context.Context) ([]string, error)
- func (_mock *MockApplier) Apply(ctx context.Context, project modgen.Project, replace bool, confirm bool) (modgen.ApplyResult, error)
- func (_m *MockApplier) EXPECT() *MockApplier_Expecter
- func (_mock *MockApplier) Unapply(ctx context.Context, name string, confirm bool) (modgen.UnapplyResult, error)
- type MockApplier_Applied_Call
- func (_c *MockApplier_Applied_Call) Return(strings []string, err error) *MockApplier_Applied_Call
- func (_c *MockApplier_Applied_Call) Run(run func(ctx context.Context)) *MockApplier_Applied_Call
- func (_c *MockApplier_Applied_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockApplier_Applied_Call
- type MockApplier_Apply_Call
- type MockApplier_Expecter
- type MockApplier_Unapply_Call
- func (_c *MockApplier_Unapply_Call) Return(unapplyResult modgen.UnapplyResult, err error) *MockApplier_Unapply_Call
- func (_c *MockApplier_Unapply_Call) Run(run func(ctx context.Context, name string, confirm bool)) *MockApplier_Unapply_Call
- func (_c *MockApplier_Unapply_Call) RunAndReturn(...) *MockApplier_Unapply_Call
- type MockModuleGenerationService
- func (_m *MockModuleGenerationService) EXPECT() *MockModuleGenerationService_Expecter
- func (_mock *MockModuleGenerationService) GenerateProject(ctx context.Context, brief modgen.Brief, sources modgen.ModuleSources) (modgen.Project, error)
- func (_mock *MockModuleGenerationService) RepairProject(ctx context.Context, brief modgen.Brief, sources modgen.ModuleSources, ...) (modgen.Project, error)
- type MockModuleGenerationService_Expecter
- func (_e *MockModuleGenerationService_Expecter) GenerateProject(ctx any, brief any, sources any) *MockModuleGenerationService_GenerateProject_Call
- func (_e *MockModuleGenerationService_Expecter) RepairProject(ctx any, brief any, sources any, project any, problems any) *MockModuleGenerationService_RepairProject_Call
- type MockModuleGenerationService_GenerateProject_Call
- func (_c *MockModuleGenerationService_GenerateProject_Call) Return(project modgen.Project, err error) *MockModuleGenerationService_GenerateProject_Call
- func (_c *MockModuleGenerationService_GenerateProject_Call) Run(...) *MockModuleGenerationService_GenerateProject_Call
- func (_c *MockModuleGenerationService_GenerateProject_Call) RunAndReturn(...) *MockModuleGenerationService_GenerateProject_Call
- type MockModuleGenerationService_RepairProject_Call
- func (_c *MockModuleGenerationService_RepairProject_Call) Return(project1 modgen.Project, err error) *MockModuleGenerationService_RepairProject_Call
- func (_c *MockModuleGenerationService_RepairProject_Call) Run(...) *MockModuleGenerationService_RepairProject_Call
- func (_c *MockModuleGenerationService_RepairProject_Call) RunAndReturn(...) *MockModuleGenerationService_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) (modgen.Project, error)
- func (_mock *MockProjectStore) Install(ctx context.Context, project modgen.Project) error
- func (_mock *MockProjectStore) List(ctx context.Context) ([]modgen.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 modgen.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) (modgen.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 modgen.Project)) *MockProjectStore_Install_Call
- func (_c *MockProjectStore_Install_Call) RunAndReturn(run func(ctx context.Context, project modgen.Project) error) *MockProjectStore_Install_Call
- type MockProjectStore_List_Call
- func (_c *MockProjectStore_List_Call) Return(installedProjects []modgen.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) ([]modgen.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 modgen.ValidationReport) *MockProjectValidator_Validate_Call
- func (_c *MockProjectValidator_Validate_Call) Run(run func(ctx context.Context, project modgen.Project)) *MockProjectValidator_Validate_Call
- func (_c *MockProjectValidator_Validate_Call) RunAndReturn(run func(ctx context.Context, project modgen.Project) modgen.ValidationReport) *MockProjectValidator_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApplier ¶
MockApplier is an autogenerated mock type for the Applier type
func NewMockApplier ¶
func NewMockApplier(t interface {
mock.TestingT
Cleanup(func())
}) *MockApplier
NewMockApplier creates a new instance of MockApplier. 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 (*MockApplier) Applied ¶
func (_mock *MockApplier) Applied(ctx context.Context) ([]string, error)
Applied provides a mock function for the type MockApplier
func (*MockApplier) Apply ¶
func (_mock *MockApplier) Apply(ctx context.Context, project modgen.Project, replace bool, confirm bool) (modgen.ApplyResult, error)
Apply provides a mock function for the type MockApplier
func (*MockApplier) EXPECT ¶
func (_m *MockApplier) EXPECT() *MockApplier_Expecter
type MockApplier_Applied_Call ¶
MockApplier_Applied_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Applied'
func (*MockApplier_Applied_Call) Return ¶
func (_c *MockApplier_Applied_Call) Return(strings []string, err error) *MockApplier_Applied_Call
func (*MockApplier_Applied_Call) Run ¶
func (_c *MockApplier_Applied_Call) Run(run func(ctx context.Context)) *MockApplier_Applied_Call
func (*MockApplier_Applied_Call) RunAndReturn ¶
func (_c *MockApplier_Applied_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *MockApplier_Applied_Call
type MockApplier_Apply_Call ¶
MockApplier_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*MockApplier_Apply_Call) Return ¶
func (_c *MockApplier_Apply_Call) Return(applyResult modgen.ApplyResult, err error) *MockApplier_Apply_Call
func (*MockApplier_Apply_Call) Run ¶
func (_c *MockApplier_Apply_Call) Run(run func(ctx context.Context, project modgen.Project, replace bool, confirm bool)) *MockApplier_Apply_Call
func (*MockApplier_Apply_Call) RunAndReturn ¶
func (_c *MockApplier_Apply_Call) RunAndReturn(run func(ctx context.Context, project modgen.Project, replace bool, confirm bool) (modgen.ApplyResult, error)) *MockApplier_Apply_Call
type MockApplier_Expecter ¶
type MockApplier_Expecter struct {
// contains filtered or unexported fields
}
func (*MockApplier_Expecter) Applied ¶
func (_e *MockApplier_Expecter) Applied(ctx any) *MockApplier_Applied_Call
Applied is a helper method to define mock.On call
- ctx context.Context
func (*MockApplier_Expecter) Apply ¶
func (_e *MockApplier_Expecter) Apply(ctx any, project any, replace any, confirm any) *MockApplier_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- project modgen.Project
- replace bool
- confirm bool
func (*MockApplier_Expecter) Unapply ¶
func (_e *MockApplier_Expecter) Unapply(ctx any, name any, confirm any) *MockApplier_Unapply_Call
Unapply is a helper method to define mock.On call
- ctx context.Context
- name string
- confirm bool
type MockApplier_Unapply_Call ¶
MockApplier_Unapply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unapply'
func (*MockApplier_Unapply_Call) Return ¶
func (_c *MockApplier_Unapply_Call) Return(unapplyResult modgen.UnapplyResult, err error) *MockApplier_Unapply_Call
func (*MockApplier_Unapply_Call) Run ¶
func (_c *MockApplier_Unapply_Call) Run(run func(ctx context.Context, name string, confirm bool)) *MockApplier_Unapply_Call
func (*MockApplier_Unapply_Call) RunAndReturn ¶
func (_c *MockApplier_Unapply_Call) RunAndReturn(run func(ctx context.Context, name string, confirm bool) (modgen.UnapplyResult, error)) *MockApplier_Unapply_Call
type MockModuleGenerationService ¶
MockModuleGenerationService is an autogenerated mock type for the ModuleGenerationService type
func NewMockModuleGenerationService ¶
func NewMockModuleGenerationService(t interface {
mock.TestingT
Cleanup(func())
}) *MockModuleGenerationService
NewMockModuleGenerationService creates a new instance of MockModuleGenerationService. 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 (*MockModuleGenerationService) EXPECT ¶
func (_m *MockModuleGenerationService) EXPECT() *MockModuleGenerationService_Expecter
func (*MockModuleGenerationService) GenerateProject ¶
func (_mock *MockModuleGenerationService) GenerateProject(ctx context.Context, brief modgen.Brief, sources modgen.ModuleSources) (modgen.Project, error)
GenerateProject provides a mock function for the type MockModuleGenerationService
func (*MockModuleGenerationService) RepairProject ¶
func (_mock *MockModuleGenerationService) RepairProject(ctx context.Context, brief modgen.Brief, sources modgen.ModuleSources, project modgen.Project, problems []string) (modgen.Project, error)
RepairProject provides a mock function for the type MockModuleGenerationService
type MockModuleGenerationService_Expecter ¶
type MockModuleGenerationService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockModuleGenerationService_Expecter) GenerateProject ¶
func (_e *MockModuleGenerationService_Expecter) GenerateProject(ctx any, brief any, sources any) *MockModuleGenerationService_GenerateProject_Call
GenerateProject is a helper method to define mock.On call
- ctx context.Context
- brief modgen.Brief
- sources modgen.ModuleSources
func (*MockModuleGenerationService_Expecter) RepairProject ¶
func (_e *MockModuleGenerationService_Expecter) RepairProject(ctx any, brief any, sources any, project any, problems any) *MockModuleGenerationService_RepairProject_Call
RepairProject is a helper method to define mock.On call
- ctx context.Context
- brief modgen.Brief
- sources modgen.ModuleSources
- project modgen.Project
- problems []string
type MockModuleGenerationService_GenerateProject_Call ¶
MockModuleGenerationService_GenerateProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateProject'
func (*MockModuleGenerationService_GenerateProject_Call) Return ¶
func (_c *MockModuleGenerationService_GenerateProject_Call) Return(project modgen.Project, err error) *MockModuleGenerationService_GenerateProject_Call
func (*MockModuleGenerationService_GenerateProject_Call) Run ¶
func (_c *MockModuleGenerationService_GenerateProject_Call) Run(run func(ctx context.Context, brief modgen.Brief, sources modgen.ModuleSources)) *MockModuleGenerationService_GenerateProject_Call
func (*MockModuleGenerationService_GenerateProject_Call) RunAndReturn ¶
func (_c *MockModuleGenerationService_GenerateProject_Call) RunAndReturn(run func(ctx context.Context, brief modgen.Brief, sources modgen.ModuleSources) (modgen.Project, error)) *MockModuleGenerationService_GenerateProject_Call
type MockModuleGenerationService_RepairProject_Call ¶
MockModuleGenerationService_RepairProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepairProject'
func (*MockModuleGenerationService_RepairProject_Call) Return ¶
func (_c *MockModuleGenerationService_RepairProject_Call) Return(project1 modgen.Project, err error) *MockModuleGenerationService_RepairProject_Call
func (*MockModuleGenerationService_RepairProject_Call) Run ¶
func (_c *MockModuleGenerationService_RepairProject_Call) Run(run func(ctx context.Context, brief modgen.Brief, sources modgen.ModuleSources, project modgen.Project, problems []string)) *MockModuleGenerationService_RepairProject_Call
func (*MockModuleGenerationService_RepairProject_Call) RunAndReturn ¶
func (_c *MockModuleGenerationService_RepairProject_Call) RunAndReturn(run func(ctx context.Context, brief modgen.Brief, sources modgen.ModuleSources, project modgen.Project, problems []string) (modgen.Project, error)) *MockModuleGenerationService_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) (modgen.Project, error)
Get provides a mock function for the type MockProjectStore
func (*MockProjectStore) Install ¶
func (_mock *MockProjectStore) Install(ctx context.Context, project modgen.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 modgen.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 modgen.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) (modgen.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 modgen.Project)) *MockProjectStore_Install_Call
func (*MockProjectStore_Install_Call) RunAndReturn ¶
func (_c *MockProjectStore_Install_Call) RunAndReturn(run func(ctx context.Context, project modgen.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 []modgen.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) ([]modgen.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 modgen.Project) modgen.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 modgen.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 modgen.ValidationReport) *MockProjectValidator_Validate_Call
func (*MockProjectValidator_Validate_Call) Run ¶
func (_c *MockProjectValidator_Validate_Call) Run(run func(ctx context.Context, project modgen.Project)) *MockProjectValidator_Validate_Call
func (*MockProjectValidator_Validate_Call) RunAndReturn ¶
func (_c *MockProjectValidator_Validate_Call) RunAndReturn(run func(ctx context.Context, project modgen.Project) modgen.ValidationReport) *MockProjectValidator_Validate_Call