Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCapabilityRepairCode ¶ added in v0.6.0
MockCapabilityRepairCode is an autogenerated mock type for the CapabilityRepairCode type
func NewMockCapabilityRepairCode ¶ added in v0.6.0
func NewMockCapabilityRepairCode(t interface { mock.TestingT Cleanup(func()) }) *MockCapabilityRepairCode
NewMockCapabilityRepairCode creates a new instance of MockCapabilityRepairCode. 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 (*MockCapabilityRepairCode) RegisterGenerateError ¶ added in v0.6.0
func (m *MockCapabilityRepairCode) RegisterGenerateError(err error) *mock.Call
RegisterGenerateError registers a mock call that errors on generation.
func (*MockCapabilityRepairCode) RegisterGenerateSuccess ¶ added in v0.6.0
func (m *MockCapabilityRepairCode) RegisterGenerateSuccess(t *testing.T, filePath string, fileContent string, assessment metrics.Assessments) *mock.Call
RegisterGenerateSuccess registers a mock call for successful generation.
func (*MockCapabilityRepairCode) RepairCode ¶ added in v0.6.0
func (_m *MockCapabilityRepairCode) RepairCode(ctx model.Context) (metrics.Assessments, error)
RepairCode provides a mock function with given fields: ctx
type MockCapabilityTranspile ¶ added in v0.6.0
MockCapabilityTranspile is an autogenerated mock type for the CapabilityTranspile type
func NewMockCapabilityTranspile ¶ added in v0.6.0
func NewMockCapabilityTranspile(t interface { mock.TestingT Cleanup(func()) }) *MockCapabilityTranspile
NewMockCapabilityTranspile creates a new instance of MockCapabilityTranspile. 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 (*MockCapabilityTranspile) RegisterGenerateSuccess ¶ added in v0.6.0
func (m *MockCapabilityTranspile) RegisterGenerateSuccess(t *testing.T, validateContext func(t *testing.T, c model.Context), filePath string, fileContent string, assessment metrics.Assessments) *mock.Call
RegisterGenerateSuccess registers a mock call for successful generation.
func (*MockCapabilityTranspile) Transpile ¶ added in v0.6.0
func (_m *MockCapabilityTranspile) Transpile(ctx model.Context) (metrics.Assessments, error)
Transpile provides a mock function with given fields: ctx
type MockCapabilityWriteTests ¶ added in v0.6.0
MockCapabilityWriteTests is an autogenerated mock type for the CapabilityWriteTests type
func NewMockCapabilityWriteTests ¶ added in v0.6.0
func NewMockCapabilityWriteTests(t interface { mock.TestingT Cleanup(func()) }) *MockCapabilityWriteTests
NewMockCapabilityWriteTests creates a new instance of MockCapabilityWriteTests. 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 (*MockCapabilityWriteTests) RegisterGenerateError ¶ added in v0.6.0
func (m *MockCapabilityWriteTests) RegisterGenerateError(err error) *mock.Call
RegisterGenerateError registers a mock call that errors on generation.
func (*MockCapabilityWriteTests) RegisterGenerateSuccess ¶ added in v0.6.0
func (m *MockCapabilityWriteTests) RegisterGenerateSuccess(t *testing.T, filePath string, fileContent string, assessment metrics.Assessments) *mock.Call
RegisterGenerateSuccess registers a mock call for successful generation.
func (*MockCapabilityWriteTests) WriteTests ¶ added in v0.6.0
func (_m *MockCapabilityWriteTests) WriteTests(ctx model.Context) (metrics.Assessments, error)
WriteTests provides a mock function with given fields: ctx
type MockModel ¶
MockModel is an autogenerated mock type for the Model type
func NewMockModel ¶
NewMockModel creates a new instance of MockModel. 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 NewMockModelNamed ¶
NewMockModelNamed returns a new named mocked model.
func (*MockModel) MetaInformation ¶ added in v0.6.1
func (_m *MockModel) MetaInformation() *model.MetaInformation
MetaInformation provides a mock function with given fields:
type MockModelCapabilityRepairCode ¶ added in v0.6.0
type MockModelCapabilityRepairCode struct { *MockModel *MockCapabilityRepairCode }
MockModelCapabilityRepairCode holds a mock implementing the "Model" and the "CapabilityRepairCode" interface.
func NewMockCapabilityRepairCodeNamed ¶ added in v0.6.0
func NewMockCapabilityRepairCodeNamed(t *testing.T, id string) *MockModelCapabilityRepairCode
NewMockCapabilityRepairCodeNamed returns a new named mocked model.
type MockModelCapabilityTranspile ¶ added in v0.6.0
type MockModelCapabilityTranspile struct { *MockModel *MockCapabilityTranspile }
MockModelCapabilityTranspile holds a mock implementing the "Model" and the "CapabilityTranspile" interface.
func NewMockCapabilityTranspileNamed ¶ added in v0.6.0
func NewMockCapabilityTranspileNamed(t *testing.T, id string) *MockModelCapabilityTranspile
NewMockCapabilityTranspileNamed returns a new named mocked model.
type MockModelCapabilityWriteTests ¶ added in v0.6.0
type MockModelCapabilityWriteTests struct { *MockModel *MockCapabilityWriteTests }
MockModelCapabilityWriteTests holds a mock implementing the "Model" and the "CapabilityWriteTests" interface.
func NewMockCapabilityWriteTestsNamed ¶ added in v0.6.0
func NewMockCapabilityWriteTestsNamed(t *testing.T, id string) *MockModelCapabilityWriteTests
NewMockCapabilityWriteTestsNamed returns a new named mocked model.