Documentation ¶
Index ¶
- type ExecutorMock
- type StateDBMock
- func (server *StateDBMock) Get(ctx context.Context, request *pb.GetRequest) (*pb.GetResponse, error)
- func (server *StateDBMock) GetProgram(ctx context.Context, request *pb.GetProgramRequest) (*pb.GetProgramResponse, error)
- func (server *StateDBMock) Set(ctx context.Context, request *pb.SetRequest) (*pb.SetResponse, error)
- func (server *StateDBMock) SetProgram(ctx context.Context, request *pb.SetProgramRequest) (*pb.SetProgramResponse, error)
- func (server *StateDBMock) Start()
- func (server *StateDBMock) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutorMock ¶
type ExecutorMock struct { // embedding an instance of pb.UnimplementedExecutorServiceServer will allow us // to implement all the required method interfaces. pb.UnimplementedExecutorServiceServer // contains filtered or unexported fields }
ExecutorMock represents and Executor mock server
func NewExecutorMock ¶
func NewExecutorMock(address string, tvContainer *testvector.Container) *ExecutorMock
NewExecutorMock is the ExecutorMock constructor.
func (*ExecutorMock) ProcessBatch ¶
func (server *ExecutorMock) ProcessBatch(ctx context.Context, request *pb.ProcessBatchRequest) (*pb.ProcessBatchResponse, error)
ProcessBatch implements the ProcessBatch gRPC method.
func (*ExecutorMock) Start ¶
func (server *ExecutorMock) Start()
Start sets up the stateDB server to process requests.
type StateDBMock ¶
type StateDBMock struct { // embedding an instance of pb.UnimplementedStateDBServiceServer will allow us // to implement all the required method interfaces. pb.UnimplementedStateDBServiceServer // contains filtered or unexported fields }
StateDBMock represents a StateDB mock server.
func NewStateDBMock ¶
func NewStateDBMock(address string, tvContainer *testvector.Container) *StateDBMock
NewStateDBMock is the StateDBMock constructor.
func (*StateDBMock) Get ¶
func (server *StateDBMock) Get(ctx context.Context, request *pb.GetRequest) (*pb.GetResponse, error)
Get is the mock of the method for getting values from the tree.
func (*StateDBMock) GetProgram ¶
func (server *StateDBMock) GetProgram(ctx context.Context, request *pb.GetProgramRequest) (*pb.GetProgramResponse, error)
GetProgram is the mock of the method for getting SC contents from the tree.
func (*StateDBMock) Set ¶
func (server *StateDBMock) Set(ctx context.Context, request *pb.SetRequest) (*pb.SetResponse, error)
Set is the mock of the method for setting values in the tree.
func (*StateDBMock) SetProgram ¶
func (server *StateDBMock) SetProgram(ctx context.Context, request *pb.SetProgramRequest) (*pb.SetProgramResponse, error)
SetProgram is the mock of the method for setting SC contents in the tree.
func (*StateDBMock) Start ¶
func (server *StateDBMock) Start()
Start sets up the stateDB server to process requests.