modeltesting

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 7 Imported by: 0

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

type MockCapabilityRepairCode struct {
	mock.Mock
}

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

RepairCode provides a mock function with given fields: ctx

type MockCapabilityTranspile added in v0.6.0

type MockCapabilityTranspile struct {
	mock.Mock
}

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

Transpile provides a mock function with given fields: ctx

type MockCapabilityWriteTests added in v0.6.0

type MockCapabilityWriteTests struct {
	mock.Mock
}

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

WriteTests provides a mock function with given fields: ctx

type MockModel

type MockModel struct {
	mock.Mock
}

MockModel is an autogenerated mock type for the Model type

func NewMockModel

func NewMockModel(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockModel

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

func NewMockModelNamed(t *testing.T, id string) *MockModel

NewMockModelNamed returns a new named mocked model.

func (*MockModel) ID

func (_m *MockModel) ID() string

ID provides a mock function with given fields:

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.

Jump to

Keyboard shortcuts

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