mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 7 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

Overview

Package mocks is a generated GoMock package.

Package mocks has the generated mocks of the interfaces of agentcmd.Deps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAgent

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

MockAgent is a mock of Agent interface.

func NewMockAgent

func NewMockAgent(ctrl *gomock.Controller) *MockAgent

NewMockAgent creates a new mock instance.

func (*MockAgent) EXPECT

func (m *MockAgent) EXPECT() *MockAgentMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAgent) IsReady

func (m *MockAgent) IsReady() error

IsReady mocks base method.

func (*MockAgent) LastHeartbeatTime

func (m *MockAgent) LastHeartbeatTime() time.Time

LastHeartbeatTime mocks base method.

func (*MockAgent) SetLogLevel

func (m *MockAgent) SetLogLevel(level *slog.LevelVar)

SetLogLevel mocks base method.

func (*MockAgent) SetMeterProvider

func (m *MockAgent) SetMeterProvider(mp *metric.MeterProvider)

SetMeterProvider mocks base method.

func (*MockAgent) SetVersion

func (m *MockAgent) SetVersion(version string)

SetVersion mocks base method.

func (*MockAgent) Start

func (m *MockAgent) Start()

Start mocks base method.

func (*MockAgent) Stop

func (m *MockAgent) Stop(ctx context.Context)

Stop mocks base method.

func (*MockAgent) SubComponents

func (m *MockAgent) SubComponents() map[string]job.SubComponentInfo

SubComponents mocks base method.

type MockAgentMockRecorder

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

MockAgentMockRecorder is the mock recorder for MockAgent.

func (*MockAgentMockRecorder) IsReady

func (mr *MockAgentMockRecorder) IsReady() *gomock.Call

IsReady indicates an expected call of IsReady.

func (*MockAgentMockRecorder) LastHeartbeatTime

func (mr *MockAgentMockRecorder) LastHeartbeatTime() *gomock.Call

LastHeartbeatTime indicates an expected call of LastHeartbeatTime.

func (*MockAgentMockRecorder) SetLogLevel

func (mr *MockAgentMockRecorder) SetLogLevel(level any) *gomock.Call

SetLogLevel indicates an expected call of SetLogLevel.

func (*MockAgentMockRecorder) SetMeterProvider

func (mr *MockAgentMockRecorder) SetMeterProvider(mp any) *gomock.Call

SetMeterProvider indicates an expected call of SetMeterProvider.

func (*MockAgentMockRecorder) SetVersion

func (mr *MockAgentMockRecorder) SetVersion(version any) *gomock.Call

SetVersion indicates an expected call of SetVersion.

func (*MockAgentMockRecorder) Start

func (mr *MockAgentMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockAgentMockRecorder) Stop

func (mr *MockAgentMockRecorder) Stop(ctx any) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockAgentMockRecorder) SubComponents

func (mr *MockAgentMockRecorder) SubComponents() *gomock.Call

SubComponents indicates an expected call of SubComponents.

Jump to

Keyboard shortcuts

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