mocks

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: ISC Imports: 10 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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) Close

func (m *MockClient) Close() error

Close mocks base method

func (*MockClient) Connect

func (m *MockClient) Connect(conn *util.Connection, serverPublicKey []byte, prefix string) error

Connect mocks base method

func (*MockClient) ConnectedTo

func (m *MockClient) ConnectedTo() *zmqutil.Connected

ConnectedTo mocks base method

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GoString

func (m *MockClient) GoString() string

GoString mocks base method

func (*MockClient) IsConnected

func (m *MockClient) IsConnected() bool

IsConnected mocks base method

func (*MockClient) IsConnectedTo

func (m *MockClient) IsConnectedTo(serverPublicKey []byte) bool

IsConnectedTo mocks base method

func (*MockClient) Receive

func (m *MockClient) Receive(flags zmq4.Flag) ([][]byte, error)

Receive mocks base method

func (*MockClient) Reconnect

func (m *MockClient) Reconnect() error

Reconnect mocks base method

func (*MockClient) Send

func (m *MockClient) Send(items ...interface{}) error

Send mocks base method

func (*MockClient) ServerPublicKey

func (m *MockClient) ServerPublicKey() []byte

ServerPublicKey mocks base method

func (*MockClient) String

func (m *MockClient) String() string

String mocks base method

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) Close

func (mr *MockClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockClientMockRecorder) Connect

func (mr *MockClientMockRecorder) Connect(conn, serverPublicKey, prefix interface{}) *gomock.Call

Connect indicates an expected call of Connect

func (*MockClientMockRecorder) ConnectedTo

func (mr *MockClientMockRecorder) ConnectedTo() *gomock.Call

ConnectedTo indicates an expected call of ConnectedTo

func (*MockClientMockRecorder) GoString

func (mr *MockClientMockRecorder) GoString() *gomock.Call

GoString indicates an expected call of GoString

func (*MockClientMockRecorder) IsConnected

func (mr *MockClientMockRecorder) IsConnected() *gomock.Call

IsConnected indicates an expected call of IsConnected

func (*MockClientMockRecorder) IsConnectedTo

func (mr *MockClientMockRecorder) IsConnectedTo(serverPublicKey interface{}) *gomock.Call

IsConnectedTo indicates an expected call of IsConnectedTo

func (*MockClientMockRecorder) Receive

func (mr *MockClientMockRecorder) Receive(flags interface{}) *gomock.Call

Receive indicates an expected call of Receive

func (*MockClientMockRecorder) Reconnect

func (mr *MockClientMockRecorder) Reconnect() *gomock.Call

Reconnect indicates an expected call of Reconnect

func (*MockClientMockRecorder) Send

func (mr *MockClientMockRecorder) Send(items ...interface{}) *gomock.Call

Send indicates an expected call of Send

func (*MockClientMockRecorder) ServerPublicKey

func (mr *MockClientMockRecorder) ServerPublicKey() *gomock.Call

ServerPublicKey indicates an expected call of ServerPublicKey

func (*MockClientMockRecorder) String

func (mr *MockClientMockRecorder) String() *gomock.Call

String indicates an expected call of String

type MockRPC

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

MockRPC is a mock of RPC interface

func NewMockRPC

func NewMockRPC(ctrl *gomock.Controller) *MockRPC

NewMockRPC creates a new mock instance

func (*MockRPC) Add

func (m *MockRPC) Add(arg0, arg1 []byte, arg2 uint64) bool

Add mocks base method

func (*MockRPC) EXPECT

func (m *MockRPC) EXPECT() *MockRPCMockRecorder

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

func (*MockRPC) Expire

func (m *MockRPC) Expire()

Expire mocks base method

func (*MockRPC) Fetch

func (m *MockRPC) Fetch(start uint64, count int) ([]rpc.Entry, uint64, error)

Fetch mocks base method

func (*MockRPC) ID

ID mocks base method

func (*MockRPC) IsInitialised

func (m *MockRPC) IsInitialised() bool

IsInitialised mocks base method

func (*MockRPC) Self

func (m *MockRPC) Self() []byte

Self mocks base method

func (*MockRPC) Set

func (m *MockRPC) Set(arg0 fingerprint.Fingerprint, arg1 []byte) error

Set mocks base method

type MockRPCMockRecorder

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

MockRPCMockRecorder is the mock recorder for MockRPC

func (*MockRPCMockRecorder) Add

func (mr *MockRPCMockRecorder) Add(arg0, arg1, arg2 interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockRPCMockRecorder) Expire

func (mr *MockRPCMockRecorder) Expire() *gomock.Call

Expire indicates an expected call of Expire

func (*MockRPCMockRecorder) Fetch

func (mr *MockRPCMockRecorder) Fetch(start, count interface{}) *gomock.Call

Fetch indicates an expected call of Fetch

func (*MockRPCMockRecorder) ID

func (mr *MockRPCMockRecorder) ID() *gomock.Call

ID indicates an expected call of ID

func (*MockRPCMockRecorder) IsSet

func (mr *MockRPCMockRecorder) IsSet() *gomock.Call

IsInitialised indicates an expected call of IsInitialised

func (*MockRPCMockRecorder) Self

func (mr *MockRPCMockRecorder) Self() *gomock.Call

Self indicates an expected call of Self

func (*MockRPCMockRecorder) Set

func (mr *MockRPCMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call

Set indicates an expected call of Set

type MockReceptor

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

MockReceptor is a mock of Receptor interface

func NewMockReceptor

func NewMockReceptor(ctrl *gomock.Controller) *MockReceptor

NewMockReceptor creates a new mock instance

func (*MockReceptor) Add

func (m *MockReceptor) Add(arg0, arg1 []byte, arg2 uint64) bool

Add mocks base method

func (*MockReceptor) Change

func (m *MockReceptor) Change(arg0 bool)

Change mocks base method

func (*MockReceptor) Connectable

func (m *MockReceptor) Connectable() *avl.Tree

Connectable mocks base method

func (*MockReceptor) EXPECT

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

func (*MockReceptor) Expire

func (m *MockReceptor) Expire()

Expire mocks base method

func (*MockReceptor) ID

func (m *MockReceptor) ID() id.ID

ID mocks base method

func (*MockReceptor) IsChanged

func (m *MockReceptor) IsChanged() bool

IsChanged mocks base method

func (*MockReceptor) IsInitialised

func (m *MockReceptor) IsInitialised() bool

IsInitialised mocks base method

func (*MockReceptor) Next

func (m *MockReceptor) Next(arg0 []byte) ([]byte, []byte, time.Time, error)

Next mocks base method

func (*MockReceptor) Random

func (m *MockReceptor) Random(arg0 []byte) ([]byte, []byte, time.Time, error)

Random mocks base method

func (*MockReceptor) ReBalance

func (m *MockReceptor) ReBalance()

ReBalance mocks base method

func (*MockReceptor) Self

func (m *MockReceptor) Self() *avl.Node

Self mocks base method

func (*MockReceptor) SelfListener

func (m *MockReceptor) SelfListener() []byte

SelfListener mocks base method

func (*MockReceptor) SetSelf

func (m *MockReceptor) SetSelf(arg0, arg1 []byte) error

SetSelf mocks base method

func (*MockReceptor) UpdateTime

func (m *MockReceptor) UpdateTime(arg0 []byte, arg1 time.Time)

UpdateTime mocks base method

type MockReceptorMockRecorder

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

MockReceptorMockRecorder is the mock recorder for MockReceptor

func (*MockReceptorMockRecorder) Add

func (mr *MockReceptorMockRecorder) Add(arg0, arg1, arg2 interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockReceptorMockRecorder) Change

func (mr *MockReceptorMockRecorder) Change(arg0 interface{}) *gomock.Call

Change indicates an expected call of Change

func (*MockReceptorMockRecorder) Changed

func (mr *MockReceptorMockRecorder) Changed() *gomock.Call

IsChanged indicates an expected call of IsChanged

func (*MockReceptorMockRecorder) Connectable

func (mr *MockReceptorMockRecorder) Connectable() *gomock.Call

Connectable indicates an expected call of Connectable

func (*MockReceptorMockRecorder) Expire

func (mr *MockReceptorMockRecorder) Expire() *gomock.Call

Expire indicates an expected call of Expire

func (*MockReceptorMockRecorder) ID

ID indicates an expected call of ID

func (*MockReceptorMockRecorder) IsSet

func (mr *MockReceptorMockRecorder) IsSet() *gomock.Call

IsInitialised indicates an expected call of IsInitialised

func (*MockReceptorMockRecorder) Next

func (mr *MockReceptorMockRecorder) Next(arg0 interface{}) *gomock.Call

Next indicates an expected call of Next

func (*MockReceptorMockRecorder) Random

func (mr *MockReceptorMockRecorder) Random(arg0 interface{}) *gomock.Call

Random indicates an expected call of Random

func (*MockReceptorMockRecorder) Rebalance

func (mr *MockReceptorMockRecorder) Rebalance() *gomock.Call

ReBalance indicates an expected call of ReBalance

func (*MockReceptorMockRecorder) Self

func (mr *MockReceptorMockRecorder) Self() *gomock.Call

Self indicates an expected call of Self

func (*MockReceptorMockRecorder) SelfAddress

func (mr *MockReceptorMockRecorder) SelfAddress() *gomock.Call

SelfListener indicates an expected call of SelfListener

func (*MockReceptorMockRecorder) SetSelf

func (mr *MockReceptorMockRecorder) SetSelf(arg0, arg1 interface{}) *gomock.Call

SetSelf indicates an expected call of SetSelf

func (*MockReceptorMockRecorder) UpdateTime

func (mr *MockReceptorMockRecorder) UpdateTime(arg0, arg1 interface{}) *gomock.Call

UpdateTime indicates an expected call of UpdateTime

Jump to

Keyboard shortcuts

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