Documentation
¶
Overview ¶
Package diagnostics is a generated GoMock package.
Package diagnostics is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Request(module string, object zbus.ObjectID, method string, args ...any) (*zbus.Response, error)
- func (m *MockClient) RequestContext(ctx context.Context, module string, object zbus.ObjectID, method string, ...) (*zbus.Response, error)
- func (m *MockClient) Status(ctx context.Context, module string) (zbus.Status, error)
- func (m *MockClient) Stream(ctx context.Context, module string, object zbus.ObjectID, event string) (<-chan zbus.Event, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Request(module, object, method any, args ...any) *gomock.Call
- func (mr *MockClientMockRecorder) RequestContext(ctx, module, object, method any, args ...any) *gomock.Call
- func (mr *MockClientMockRecorder) Status(ctx, module any) *gomock.Call
- func (mr *MockClientMockRecorder) Stream(ctx, module, object, event any) *gomock.Call
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) Do(commandName string, args ...any) (any, error)
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) Err() error
- func (m *MockConn) Flush() error
- func (m *MockConn) Receive() (any, error)
- func (m *MockConn) Send(commandName string, args ...any) error
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) Do(commandName any, args ...any) *gomock.Call
- func (mr *MockConnMockRecorder) Err() *gomock.Call
- func (mr *MockConnMockRecorder) Flush() *gomock.Call
- func (mr *MockConnMockRecorder) Receive() *gomock.Call
- func (mr *MockConnMockRecorder) Send(commandName any, args ...any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) Request ¶
func (m *MockClient) Request(module string, object zbus.ObjectID, method string, args ...any) (*zbus.Response, error)
Request mocks base method.
func (*MockClient) RequestContext ¶
func (m *MockClient) RequestContext(ctx context.Context, module string, object zbus.ObjectID, method string, args ...any) (*zbus.Response, error)
RequestContext mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Request ¶
func (mr *MockClientMockRecorder) Request(module, object, method any, args ...any) *gomock.Call
Request indicates an expected call of Request.
func (*MockClientMockRecorder) RequestContext ¶
func (mr *MockClientMockRecorder) RequestContext(ctx, module, object, method any, args ...any) *gomock.Call
RequestContext indicates an expected call of RequestContext.
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface.
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance.
func (*MockConn) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn.
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConnMockRecorder) Do ¶
func (mr *MockConnMockRecorder) Do(commandName any, args ...any) *gomock.Call
Do indicates an expected call of Do.
func (*MockConnMockRecorder) Err ¶
func (mr *MockConnMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockConnMockRecorder) Flush ¶
func (mr *MockConnMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockConnMockRecorder) Receive ¶
func (mr *MockConnMockRecorder) Receive() *gomock.Call
Receive indicates an expected call of Receive.