Documentation
¶
Index ¶
- type MockModel
- func (_m *MockModel) GenerateTestsForFile(logger *log.Logger, _a1 language.Language, repositoryPath string, ...) (metrics.Assessments, error)
- func (_m *MockModel) ID() string
- func (m *MockModel) RegisterGenerateError(err error) *mock.Call
- func (m *MockModel) RegisterGenerateSuccess(t *testing.T, filePath string, fileContent string, ...) *mock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) GenerateTestsForFile ¶
func (_m *MockModel) GenerateTestsForFile(logger *log.Logger, _a1 language.Language, repositoryPath string, filePath string) (metrics.Assessments, error)
GenerateTestsForFile provides a mock function with given fields: logger, _a1, repositoryPath, filePath
func (*MockModel) RegisterGenerateError ¶
RegisterGenerateError registers a mock call that errors on generation.
Click to show internal directories.
Click to hide internal directories.