Documentation
¶
Index ¶
- type MockSampleSource
- type MockSampleSource_Expecter
- type MockSampleSource_FetchAll_Call
- func (_c *MockSampleSource_FetchAll_Call) Return(sample profile.Sample, err error) *MockSampleSource_FetchAll_Call
- func (_c *MockSampleSource_FetchAll_Call) Run(run func(ctx context.Context)) *MockSampleSource_FetchAll_Call
- func (_c *MockSampleSource_FetchAll_Call) RunAndReturn(run func(ctx context.Context) (profile.Sample, error)) *MockSampleSource_FetchAll_Call
- type MockSolisSource
- type MockSolisSource_Expecter
- type MockSolisSource_Status_Call
- func (_c *MockSolisSource_Status_Call) Return(solisStatuss []maintenance.SolisStatus, err error) *MockSolisSource_Status_Call
- func (_c *MockSolisSource_Status_Call) Run(run func(ctx context.Context)) *MockSolisSource_Status_Call
- func (_c *MockSolisSource_Status_Call) RunAndReturn(run func(ctx context.Context) ([]maintenance.SolisStatus, error)) *MockSolisSource_Status_Call
- type MockSolisSource_Values_Call
- func (_c *MockSolisSource_Values_Call) Return(solisValues []maintenance.SolisValue, err error) *MockSolisSource_Values_Call
- func (_c *MockSolisSource_Values_Call) Run(run func(ctx context.Context, level string)) *MockSolisSource_Values_Call
- func (_c *MockSolisSource_Values_Call) RunAndReturn(run func(ctx context.Context, level string) ([]maintenance.SolisValue, error)) *MockSolisSource_Values_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSampleSource ¶
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 (_m *MockSampleSource) EXPECT() *MockSampleSource_Expecter
type MockSampleSource_Expecter ¶
type MockSampleSource_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSampleSource_Expecter) FetchAll ¶
func (_e *MockSampleSource_Expecter) FetchAll(ctx any) *MockSampleSource_FetchAll_Call
FetchAll is a helper method to define mock.On call
- ctx context.Context
type MockSampleSource_FetchAll_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 (_c *MockSampleSource_FetchAll_Call) Return(sample profile.Sample, err error) *MockSampleSource_FetchAll_Call
func (*MockSampleSource_FetchAll_Call) Run ¶
func (_c *MockSampleSource_FetchAll_Call) Run(run func(ctx context.Context)) *MockSampleSource_FetchAll_Call
func (*MockSampleSource_FetchAll_Call) RunAndReturn ¶
func (_c *MockSampleSource_FetchAll_Call) RunAndReturn(run func(ctx context.Context) (profile.Sample, error)) *MockSampleSource_FetchAll_Call
type MockSolisSource ¶
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 (_m *MockSolisSource) EXPECT() *MockSolisSource_Expecter
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 ¶
func (_e *MockSolisSource_Expecter) Status(ctx any) *MockSolisSource_Status_Call
Status is a helper method to define mock.On call
- ctx context.Context
func (*MockSolisSource_Expecter) Values ¶
func (_e *MockSolisSource_Expecter) Values(ctx any, level any) *MockSolisSource_Values_Call
Values is a helper method to define mock.On call
- ctx context.Context
- level string
type MockSolisSource_Status_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 (_c *MockSolisSource_Status_Call) Return(solisStatuss []maintenance.SolisStatus, err error) *MockSolisSource_Status_Call
func (*MockSolisSource_Status_Call) Run ¶
func (_c *MockSolisSource_Status_Call) Run(run func(ctx context.Context)) *MockSolisSource_Status_Call
func (*MockSolisSource_Status_Call) RunAndReturn ¶
func (_c *MockSolisSource_Status_Call) RunAndReturn(run func(ctx context.Context) ([]maintenance.SolisStatus, error)) *MockSolisSource_Status_Call
type MockSolisSource_Values_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 (_c *MockSolisSource_Values_Call) Return(solisValues []maintenance.SolisValue, err error) *MockSolisSource_Values_Call
func (*MockSolisSource_Values_Call) Run ¶
func (_c *MockSolisSource_Values_Call) Run(run func(ctx context.Context, level string)) *MockSolisSource_Values_Call
func (*MockSolisSource_Values_Call) RunAndReturn ¶
func (_c *MockSolisSource_Values_Call) RunAndReturn(run func(ctx context.Context, level string) ([]maintenance.SolisValue, error)) *MockSolisSource_Values_Call