mockinsecure

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: AGPL-3.0 Imports: 10 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 AttackNetwork

type AttackNetwork struct {
	mock.Mock
}

AttackNetwork is an autogenerated mock type for the AttackNetwork type

func NewAttackNetwork added in v0.26.1

func NewAttackNetwork(t testing.TB) *AttackNetwork

NewAttackNetwork creates a new instance of AttackNetwork. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*AttackNetwork) Done

func (_m *AttackNetwork) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*AttackNetwork) Ready

func (_m *AttackNetwork) Ready() <-chan struct{}

Ready provides a mock function with given fields:

func (*AttackNetwork) Send added in v0.25.2

func (_m *AttackNetwork) Send(_a0 *insecure.Event) error

Send provides a mock function with given fields: _a0

func (*AttackNetwork) Start

Start provides a mock function with given fields: _a0

type AttackOrchestrator

type AttackOrchestrator struct {
	mock.Mock
}

AttackOrchestrator is an autogenerated mock type for the AttackOrchestrator type

func NewAttackOrchestrator added in v0.26.1

func NewAttackOrchestrator(t testing.TB) *AttackOrchestrator

NewAttackOrchestrator creates a new instance of AttackOrchestrator. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*AttackOrchestrator) HandleEventFromCorruptedNode

func (_m *AttackOrchestrator) HandleEventFromCorruptedNode(_a0 *insecure.Event) error

HandleEventFromCorruptedNode provides a mock function with given fields: _a0

func (*AttackOrchestrator) WithAttackNetwork added in v0.25.2

func (_m *AttackOrchestrator) WithAttackNetwork(_a0 insecure.AttackNetwork)

WithAttackNetwork provides a mock function with given fields: _a0

type AttackerClient

type AttackerClient struct {
	mock.Mock
}

AttackerClient is an autogenerated mock type for the AttackerClient type

func NewAttackerClient added in v0.26.1

func NewAttackerClient(t testing.TB) *AttackerClient

NewAttackerClient creates a new instance of AttackerClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*AttackerClient) Observe

Observe provides a mock function with given fields: ctx, opts

type AttackerServer

type AttackerServer struct {
	mock.Mock
}

AttackerServer is an autogenerated mock type for the AttackerServer type

func NewAttackerServer added in v0.26.1

func NewAttackerServer(t testing.TB) *AttackerServer

NewAttackerServer creates a new instance of AttackerServer. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*AttackerServer) Observe

Observe provides a mock function with given fields: _a0

type Attacker_ObserveClient

type Attacker_ObserveClient struct {
	mock.Mock
}

Attacker_ObserveClient is an autogenerated mock type for the Attacker_ObserveClient type

func NewAttacker_ObserveClient added in v0.26.1

func NewAttacker_ObserveClient(t testing.TB) *Attacker_ObserveClient

NewAttacker_ObserveClient creates a new instance of Attacker_ObserveClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*Attacker_ObserveClient) CloseAndRecv

func (_m *Attacker_ObserveClient) CloseAndRecv() (*emptypb.Empty, error)

CloseAndRecv provides a mock function with given fields:

func (*Attacker_ObserveClient) CloseSend

func (_m *Attacker_ObserveClient) CloseSend() error

CloseSend provides a mock function with given fields:

func (*Attacker_ObserveClient) Context

func (_m *Attacker_ObserveClient) Context() context.Context

Context provides a mock function with given fields:

func (*Attacker_ObserveClient) Header

func (_m *Attacker_ObserveClient) Header() (metadata.MD, error)

Header provides a mock function with given fields:

func (*Attacker_ObserveClient) RecvMsg

func (_m *Attacker_ObserveClient) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*Attacker_ObserveClient) Send

Send provides a mock function with given fields: _a0

func (*Attacker_ObserveClient) SendMsg

func (_m *Attacker_ObserveClient) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*Attacker_ObserveClient) Trailer

func (_m *Attacker_ObserveClient) Trailer() metadata.MD

Trailer provides a mock function with given fields:

type Attacker_ObserveServer

type Attacker_ObserveServer struct {
	mock.Mock
}

Attacker_ObserveServer is an autogenerated mock type for the Attacker_ObserveServer type

func NewAttacker_ObserveServer added in v0.26.1

func NewAttacker_ObserveServer(t testing.TB) *Attacker_ObserveServer

NewAttacker_ObserveServer creates a new instance of Attacker_ObserveServer. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*Attacker_ObserveServer) Context

func (_m *Attacker_ObserveServer) Context() context.Context

Context provides a mock function with given fields:

func (*Attacker_ObserveServer) Recv

Recv provides a mock function with given fields:

func (*Attacker_ObserveServer) RecvMsg

func (_m *Attacker_ObserveServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*Attacker_ObserveServer) SendAndClose

func (_m *Attacker_ObserveServer) SendAndClose(_a0 *emptypb.Empty) error

SendAndClose provides a mock function with given fields: _a0

func (*Attacker_ObserveServer) SendHeader

func (_m *Attacker_ObserveServer) SendHeader(_a0 metadata.MD) error

SendHeader provides a mock function with given fields: _a0

func (*Attacker_ObserveServer) SendMsg

func (_m *Attacker_ObserveServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*Attacker_ObserveServer) SetHeader

func (_m *Attacker_ObserveServer) SetHeader(_a0 metadata.MD) error

SetHeader provides a mock function with given fields: _a0

func (*Attacker_ObserveServer) SetTrailer

func (_m *Attacker_ObserveServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type ConduitController added in v0.25.2

type ConduitController struct {
	mock.Mock
}

ConduitController is an autogenerated mock type for the ConduitController type

func NewConduitController added in v0.26.1

func NewConduitController(t testing.TB) *ConduitController

NewConduitController creates a new instance of ConduitController. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConduitController) EngineClosingChannel added in v0.25.2

func (_m *ConduitController) EngineClosingChannel(_a0 network.Channel) error

EngineClosingChannel provides a mock function with given fields: _a0

func (*ConduitController) HandleIncomingEvent added in v0.25.2

func (_m *ConduitController) HandleIncomingEvent(_a0 interface{}, _a1 network.Channel, _a2 insecure.Protocol, _a3 uint32, _a4 ...flow.Identifier) error

HandleIncomingEvent provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type ConduitMaster

type ConduitMaster struct {
	mock.Mock
}

ConduitMaster is an autogenerated mock type for the ConduitMaster type

func (*ConduitMaster) EngineClosingChannel

func (_m *ConduitMaster) EngineClosingChannel(_a0 network.Channel) error

EngineClosingChannel provides a mock function with given fields: _a0

func (*ConduitMaster) HandleIncomingEvent

func (_m *ConduitMaster) HandleIncomingEvent(_a0 interface{}, _a1 network.Channel, _a2 insecure.Protocol, _a3 uint32, _a4 ...flow.Identifier) error

HandleIncomingEvent provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type CorruptedNodeConnection added in v0.25.2

type CorruptedNodeConnection struct {
	mock.Mock
}

CorruptedNodeConnection is an autogenerated mock type for the CorruptedNodeConnection type

func NewCorruptedNodeConnection added in v0.26.1

func NewCorruptedNodeConnection(t testing.TB) *CorruptedNodeConnection

NewCorruptedNodeConnection creates a new instance of CorruptedNodeConnection. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptedNodeConnection) CloseConnection added in v0.25.2

func (_m *CorruptedNodeConnection) CloseConnection() error

CloseConnection provides a mock function with given fields:

func (*CorruptedNodeConnection) SendMessage added in v0.25.2

func (_m *CorruptedNodeConnection) SendMessage(_a0 *insecure.Message) error

SendMessage provides a mock function with given fields: _a0

type CorruptedNodeConnector added in v0.25.2

type CorruptedNodeConnector struct {
	mock.Mock
}

CorruptedNodeConnector is an autogenerated mock type for the CorruptedNodeConnector type

func NewCorruptedNodeConnector added in v0.26.1

func NewCorruptedNodeConnector(t testing.TB) *CorruptedNodeConnector

NewCorruptedNodeConnector creates a new instance of CorruptedNodeConnector. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptedNodeConnector) Connect added in v0.25.2

Connect provides a mock function with given fields: _a0, _a1

func (*CorruptedNodeConnector) WithAttackerAddress added in v0.26.0

func (_m *CorruptedNodeConnector) WithAttackerAddress(_a0 string)

WithAttackerAddress provides a mock function with given fields: _a0

type CorruptibleConduitFactoryClient

type CorruptibleConduitFactoryClient struct {
	mock.Mock
}

CorruptibleConduitFactoryClient is an autogenerated mock type for the CorruptibleConduitFactoryClient type

func NewCorruptibleConduitFactoryClient added in v0.26.1

func NewCorruptibleConduitFactoryClient(t testing.TB) *CorruptibleConduitFactoryClient

NewCorruptibleConduitFactoryClient creates a new instance of CorruptibleConduitFactoryClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptibleConduitFactoryClient) ProcessAttackerMessage

ProcessAttackerMessage provides a mock function with given fields: ctx, opts

func (*CorruptibleConduitFactoryClient) RegisterAttacker

RegisterAttacker provides a mock function with given fields: ctx, in, opts

type CorruptibleConduitFactoryServer

type CorruptibleConduitFactoryServer struct {
	mock.Mock
}

CorruptibleConduitFactoryServer is an autogenerated mock type for the CorruptibleConduitFactoryServer type

func NewCorruptibleConduitFactoryServer added in v0.26.1

func NewCorruptibleConduitFactoryServer(t testing.TB) *CorruptibleConduitFactoryServer

NewCorruptibleConduitFactoryServer creates a new instance of CorruptibleConduitFactoryServer. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptibleConduitFactoryServer) ProcessAttackerMessage

ProcessAttackerMessage provides a mock function with given fields: _a0

func (*CorruptibleConduitFactoryServer) RegisterAttacker

RegisterAttacker provides a mock function with given fields: _a0, _a1

type CorruptibleConduitFactory_ProcessAttackerMessageClient

type CorruptibleConduitFactory_ProcessAttackerMessageClient struct {
	mock.Mock
}

CorruptibleConduitFactory_ProcessAttackerMessageClient is an autogenerated mock type for the CorruptibleConduitFactory_ProcessAttackerMessageClient type

func NewCorruptibleConduitFactory_ProcessAttackerMessageClient added in v0.26.1

func NewCorruptibleConduitFactory_ProcessAttackerMessageClient(t testing.TB) *CorruptibleConduitFactory_ProcessAttackerMessageClient

NewCorruptibleConduitFactory_ProcessAttackerMessageClient creates a new instance of CorruptibleConduitFactory_ProcessAttackerMessageClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptibleConduitFactory_ProcessAttackerMessageClient) CloseAndRecv

CloseAndRecv provides a mock function with given fields:

func (*CorruptibleConduitFactory_ProcessAttackerMessageClient) CloseSend

CloseSend provides a mock function with given fields:

func (*CorruptibleConduitFactory_ProcessAttackerMessageClient) Context

Context provides a mock function with given fields:

func (*CorruptibleConduitFactory_ProcessAttackerMessageClient) Header

Header provides a mock function with given fields:

func (*CorruptibleConduitFactory_ProcessAttackerMessageClient) RecvMsg

RecvMsg provides a mock function with given fields: m

func (*CorruptibleConduitFactory_ProcessAttackerMessageClient) Send

Send provides a mock function with given fields: _a0

func (*CorruptibleConduitFactory_ProcessAttackerMessageClient) SendMsg

SendMsg provides a mock function with given fields: m

func (*CorruptibleConduitFactory_ProcessAttackerMessageClient) Trailer

Trailer provides a mock function with given fields:

type CorruptibleConduitFactory_ProcessAttackerMessageServer

type CorruptibleConduitFactory_ProcessAttackerMessageServer struct {
	mock.Mock
}

CorruptibleConduitFactory_ProcessAttackerMessageServer is an autogenerated mock type for the CorruptibleConduitFactory_ProcessAttackerMessageServer type

func NewCorruptibleConduitFactory_ProcessAttackerMessageServer added in v0.26.1

func NewCorruptibleConduitFactory_ProcessAttackerMessageServer(t testing.TB) *CorruptibleConduitFactory_ProcessAttackerMessageServer

NewCorruptibleConduitFactory_ProcessAttackerMessageServer creates a new instance of CorruptibleConduitFactory_ProcessAttackerMessageServer. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*CorruptibleConduitFactory_ProcessAttackerMessageServer) Context

Context provides a mock function with given fields:

func (*CorruptibleConduitFactory_ProcessAttackerMessageServer) Recv

Recv provides a mock function with given fields:

func (*CorruptibleConduitFactory_ProcessAttackerMessageServer) RecvMsg

RecvMsg provides a mock function with given fields: m

func (*CorruptibleConduitFactory_ProcessAttackerMessageServer) SendAndClose

SendAndClose provides a mock function with given fields: _a0

func (*CorruptibleConduitFactory_ProcessAttackerMessageServer) SendHeader

SendHeader provides a mock function with given fields: _a0

func (*CorruptibleConduitFactory_ProcessAttackerMessageServer) SendMsg

SendMsg provides a mock function with given fields: m

func (*CorruptibleConduitFactory_ProcessAttackerMessageServer) SetHeader

SetHeader provides a mock function with given fields: _a0

func (*CorruptibleConduitFactory_ProcessAttackerMessageServer) SetTrailer

SetTrailer provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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