mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 4 Imported by: 0 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 MockSampleSource

type MockSampleSource struct {
	mock.Mock
}

MockSampleSource is an autogenerated mock type for the SampleSource type

func NewMockSampleSource

func NewMockSampleSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSampleSource

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

func (*MockSampleSource) FetchAll

func (_mock *MockSampleSource) FetchAll(ctx context.Context) (profile.Sample, error)

FetchAll provides a mock function for the type MockSampleSource

type MockSampleSource_Expecter

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

func (*MockSampleSource_Expecter) FetchAll

FetchAll is a helper method to define mock.On call

  • ctx context.Context

type MockSampleSource_FetchAll_Call

type MockSampleSource_FetchAll_Call struct {
	*mock.Call
}

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

func (*MockSampleSource_FetchAll_Call) Return

func (*MockSampleSource_FetchAll_Call) Run

func (*MockSampleSource_FetchAll_Call) RunAndReturn

type MockSolisSource

type MockSolisSource struct {
	mock.Mock
}

MockSolisSource is an autogenerated mock type for the SolisSource type

func NewMockSolisSource

func NewMockSolisSource(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSolisSource

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

func (*MockSolisSource) Status

func (_mock *MockSolisSource) Status(ctx context.Context) ([]maintenance.SolisStatus, error)

Status provides a mock function for the type MockSolisSource

func (*MockSolisSource) Values

func (_mock *MockSolisSource) Values(ctx context.Context, level string) ([]maintenance.SolisValue, error)

Values provides a mock function for the type MockSolisSource

type MockSolisSource_Expecter

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

func (*MockSolisSource_Expecter) Status

Status is a helper method to define mock.On call

  • ctx context.Context

func (*MockSolisSource_Expecter) Values

Values is a helper method to define mock.On call

  • ctx context.Context
  • level string

type MockSolisSource_Status_Call

type MockSolisSource_Status_Call struct {
	*mock.Call
}

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

func (*MockSolisSource_Status_Call) Return

func (*MockSolisSource_Status_Call) Run

func (*MockSolisSource_Status_Call) RunAndReturn

type MockSolisSource_Values_Call

type MockSolisSource_Values_Call struct {
	*mock.Call
}

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

func (*MockSolisSource_Values_Call) Return

func (*MockSolisSource_Values_Call) Run

func (*MockSolisSource_Values_Call) RunAndReturn

Jump to

Keyboard shortcuts

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