mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: GPL-3.0 Imports: 8 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

func NewCommand

func NewCommand() *protos.Command

func NewSimpleExecutor

func NewSimpleExecutor(author uint64, logger external.Logger) external.ExecutionService

func NewTransaction

func NewTransaction() *protos.Transaction

Types

type MockExecutionService

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

MockExecutionService is a mock of ExecutionService interface

func NewMockExecutionService

func NewMockExecutionService(ctrl *gomock.Controller) *MockExecutionService

NewMockExecutionService creates a new mock instance

func NewMockMinimalExecutionService

func NewMockMinimalExecutionService(ctrl *gomock.Controller) *MockExecutionService

func (*MockExecutionService) CommandExecution

func (m *MockExecutionService) CommandExecution(block types.InnerBlock, seqNo uint64)

CommandExecution mocks base method

func (*MockExecutionService) EXPECT

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

type MockExecutionServiceMockRecorder

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

MockExecutionServiceMockRecorder is the mock recorder for MockExecutionService

func (*MockExecutionServiceMockRecorder) CommandExecution

func (mr *MockExecutionServiceMockRecorder) CommandExecution(block, seqNo interface{}) *gomock.Call

CommandExecution indicates an expected call of CommandExecution

type MockLogger

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

MockLogger is a mock of Logger interface

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance

func NewMockMinimalLogger

func NewMockMinimalLogger(ctrl *gomock.Controller) *MockLogger

func (*MockLogger) Debug

func (m *MockLogger) Debug(v ...interface{})

Debug mocks base method

func (*MockLogger) Debugf

func (m *MockLogger) Debugf(format string, v ...interface{})

Debugf mocks base method

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Error

func (m *MockLogger) Error(v ...interface{})

Error mocks base method

func (*MockLogger) Errorf

func (m *MockLogger) Errorf(format string, v ...interface{})

Errorf mocks base method

func (*MockLogger) Info

func (m *MockLogger) Info(v ...interface{})

Info mocks base method

func (*MockLogger) Infof

func (m *MockLogger) Infof(format string, v ...interface{})

Infof mocks base method

type MockLoggerMockRecorder

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

MockLoggerMockRecorder is the mock recorder for MockLogger

func (*MockLoggerMockRecorder) Debug

func (mr *MockLoggerMockRecorder) Debug(v ...interface{}) *gomock.Call

Debug indicates an expected call of Debug

func (*MockLoggerMockRecorder) Debugf

func (mr *MockLoggerMockRecorder) Debugf(format interface{}, v ...interface{}) *gomock.Call

Debugf indicates an expected call of Debugf

func (*MockLoggerMockRecorder) Error

func (mr *MockLoggerMockRecorder) Error(v ...interface{}) *gomock.Call

Error indicates an expected call of Error

func (*MockLoggerMockRecorder) Errorf

func (mr *MockLoggerMockRecorder) Errorf(format interface{}, v ...interface{}) *gomock.Call

Errorf indicates an expected call of Errorf

func (*MockLoggerMockRecorder) Info

func (mr *MockLoggerMockRecorder) Info(v ...interface{}) *gomock.Call

Info indicates an expected call of Info

func (*MockLoggerMockRecorder) Infof

func (mr *MockLoggerMockRecorder) Infof(format interface{}, v ...interface{}) *gomock.Call

Infof indicates an expected call of Infof

type MockNetworkService

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

MockNetworkService is a mock of NetworkService interface

func NewMockMinimalNetworkService

func NewMockMinimalNetworkService(ctrl *gomock.Controller) *MockNetworkService

func NewMockNetworkService

func NewMockNetworkService(ctrl *gomock.Controller) *MockNetworkService

NewMockNetworkService creates a new mock instance

func (*MockNetworkService) BroadcastCommand

func (m *MockNetworkService) BroadcastCommand(command *protos.Command)

BroadcastCommand mocks base method

func (*MockNetworkService) BroadcastPCM

func (m *MockNetworkService) BroadcastPCM(message *protos.ConsensusMessage)

BroadcastPCM mocks base method

func (*MockNetworkService) EXPECT

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

func (*MockNetworkService) UnicastPCM

func (m *MockNetworkService) UnicastPCM(message *protos.ConsensusMessage)

UnicastPCM mocks base method

type MockNetworkServiceMockRecorder

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

MockNetworkServiceMockRecorder is the mock recorder for MockNetworkService

func (*MockNetworkServiceMockRecorder) BroadcastCommand

func (mr *MockNetworkServiceMockRecorder) BroadcastCommand(command interface{}) *gomock.Call

BroadcastCommand indicates an expected call of BroadcastCommand

func (*MockNetworkServiceMockRecorder) BroadcastPCM

func (mr *MockNetworkServiceMockRecorder) BroadcastPCM(message interface{}) *gomock.Call

BroadcastPCM indicates an expected call of BroadcastPCM

func (*MockNetworkServiceMockRecorder) UnicastPCM

func (mr *MockNetworkServiceMockRecorder) UnicastPCM(message interface{}) *gomock.Call

UnicastPCM indicates an expected call of UnicastPCM

type SimpleNetwork

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

func NewSimpleNetwork

func NewSimpleNetwork(networkC map[uint64]chan *protos.ConsensusMessage, commandC map[uint64]chan *protos.Command, logger external.Logger, async bool) *SimpleNetwork

func (*SimpleNetwork) BroadcastCommand

func (net *SimpleNetwork) BroadcastCommand(command *protos.Command)

func (*SimpleNetwork) BroadcastPCM

func (net *SimpleNetwork) BroadcastPCM(message *protos.ConsensusMessage)

func (*SimpleNetwork) UnicastPCM

func (net *SimpleNetwork) UnicastPCM(message *protos.ConsensusMessage)

Jump to

Keyboard shortcuts

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