mocks

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockComponentLicense

type MockComponentLicense struct {
	mock.Mock
}

MockComponentLicense is an autogenerated mock type for the ComponentLicense type

func NewMockComponentLicense

func NewMockComponentLicense(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockComponentLicense

NewMockComponentLicense creates a new instance of MockComponentLicense. 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 (*MockComponentLicense) EXPECT

type MockComponentLicense_Expecter

type MockComponentLicense_Expecter struct {
	// contains filtered or unexported fields
}

type MockFileWatcher added in v0.6.1

type MockFileWatcher struct {
	mock.Mock
}

MockFileWatcher is an autogenerated mock type for the FileWatcher type

func NewMockFileWatcher added in v0.6.1

func NewMockFileWatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFileWatcher

NewMockFileWatcher creates a new instance of MockFileWatcher. 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 (*MockFileWatcher) Close added in v0.6.1

func (_m *MockFileWatcher) Close() error

Close provides a mock function with given fields:

func (*MockFileWatcher) EXPECT added in v0.6.1

func (*MockFileWatcher) Start added in v0.6.1

func (_m *MockFileWatcher) Start() error

Start provides a mock function with given fields:

type MockFileWatcher_Close_Call added in v0.6.1

type MockFileWatcher_Close_Call struct {
	*mock.Call
}

MockFileWatcher_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*MockFileWatcher_Close_Call) Return added in v0.6.1

func (*MockFileWatcher_Close_Call) Run added in v0.6.1

func (*MockFileWatcher_Close_Call) RunAndReturn added in v0.6.1

func (_c *MockFileWatcher_Close_Call) RunAndReturn(run func() error) *MockFileWatcher_Close_Call

type MockFileWatcher_Expecter added in v0.6.1

type MockFileWatcher_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockFileWatcher_Expecter) Close added in v0.6.1

Close is a helper method to define mock.On call

func (*MockFileWatcher_Expecter) Start added in v0.6.1

Start is a helper method to define mock.On call

type MockFileWatcher_Start_Call added in v0.6.1

type MockFileWatcher_Start_Call struct {
	*mock.Call
}

MockFileWatcher_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*MockFileWatcher_Start_Call) Return added in v0.6.1

func (*MockFileWatcher_Start_Call) Run added in v0.6.1

func (*MockFileWatcher_Start_Call) RunAndReturn added in v0.6.1

func (_c *MockFileWatcher_Start_Call) RunAndReturn(run func() error) *MockFileWatcher_Start_Call

type MockLicense

type MockLicense struct {
	mock.Mock
}

MockLicense is an autogenerated mock type for the License type

func NewMockLicense

func NewMockLicense(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLicense

NewMockLicense creates a new instance of MockLicense. 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 (*MockLicense) EXPECT

func (_m *MockLicense) EXPECT() *MockLicense_Expecter

type MockLicense_Expecter

type MockLicense_Expecter struct {
	// contains filtered or unexported fields
}

type MockResultFilter

type MockResultFilter struct {
	mock.Mock
}

MockResultFilter is an autogenerated mock type for the ResultFilter type

func NewMockResultFilter

func NewMockResultFilter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockResultFilter

NewMockResultFilter creates a new instance of MockResultFilter. 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 (*MockResultFilter) EXPECT

func (*MockResultFilter) IsValid

func (_m *MockResultFilter) IsValid(result entities.Result) bool

IsValid provides a mock function with given fields: result

type MockResultFilter_Expecter

type MockResultFilter_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockResultFilter_Expecter) IsValid

func (_e *MockResultFilter_Expecter) IsValid(result interface{}) *MockResultFilter_IsValid_Call

IsValid is a helper method to define mock.On call

  • result entities.Result

type MockResultFilter_IsValid_Call

type MockResultFilter_IsValid_Call struct {
	*mock.Call
}

MockResultFilter_IsValid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsValid'

func (*MockResultFilter_IsValid_Call) Return

func (*MockResultFilter_IsValid_Call) Run

func (*MockResultFilter_IsValid_Call) RunAndReturn

Jump to

Keyboard shortcuts

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