modeltesting

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCapabilityMigrate added in v1.0.0

type MockCapabilityMigrate struct {
	mock.Mock
}

MockCapabilityMigrate is an autogenerated mock type for the CapabilityMigrate type

func NewMockCapabilityMigrate added in v1.0.0

func NewMockCapabilityMigrate(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCapabilityMigrate

NewMockCapabilityMigrate creates a new instance of MockCapabilityMigrate. 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 (*MockCapabilityMigrate) Migrate added in v1.0.0

Migrate provides a mock function with given fields: ctx

func (*MockCapabilityMigrate) RegisterGenerateSuccess added in v1.0.0

func (m *MockCapabilityMigrate) RegisterGenerateSuccess(t *testing.T, filePath string, fileContent string, assessment metrics.Assessments) *mock.Call

RegisterGenerateSuccess registers a mock call for successful generation.

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) RegisterGenerateSuccessValidateContext added in v1.0.0

func (m *MockCapabilityWriteTests) RegisterGenerateSuccessValidateContext(t *testing.T, validateContext func(t *testing.T, c model.Context), filePath string, fileContent string, assessment metrics.Assessments) *mock.Call

RegisterGenerateSuccessValidateContext 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) Attributes added in v1.0.2

func (_m *MockModel) Attributes() map[string]string

Attributes provides a mock function with given fields:

func (*MockModel) Clone added in v1.0.6

func (_m *MockModel) Clone() model.Model

Clone provides a mock function with given fields:

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:

func (*MockModel) ModelID added in v1.0.2

func (_m *MockModel) ModelID() string

ModelID provides a mock function with given fields:

func (*MockModel) ModelIDWithoutProvider added in v1.0.2

func (_m *MockModel) ModelIDWithoutProvider() string

ModelIDWithoutProvider provides a mock function with given fields:

func (*MockModel) SetAttributes added in v1.0.6

func (_m *MockModel) SetAttributes(attributes map[string]string)

SetAttributes provides a mock function with given fields: attributes

type MockModelCapabilityMigrate added in v1.0.0

type MockModelCapabilityMigrate struct {
	*MockModel
	*MockCapabilityMigrate
}

MockModelCapabilityMigrate holds a mock implementing the "Model" and the "CapabilityMigrate" interface.

func NewMockCapabilityMigrateNamed added in v1.0.0

func NewMockCapabilityMigrateNamed(t *testing.T, id string) *MockModelCapabilityMigrate

NewMockCapabilityMigrateNamed returns a new named mocked model.

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