internal

package
v0.0.0-...-c85edb6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDB

func SetupDB(t testing.TB) *db.BeaconDB

SetupDB instantiates and returns a BeaconDB instance.

func TeardownDB

func TeardownDB(t testing.TB, db *db.BeaconDB)

TeardownDB cleans up a BeaconDB instance.

Types

type MockBeaconServiceServer

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

MockBeaconServiceServer is a mock of BeaconServiceServer interface

func NewMockBeaconServiceServer

func NewMockBeaconServiceServer(ctrl *gomock.Controller) *MockBeaconServiceServer

NewMockBeaconServiceServer creates a new mock instance

func (*MockBeaconServiceServer) CanonicalHead

func (m *MockBeaconServiceServer) CanonicalHead(arg0 context.Context, arg1 *types.Empty) (*v1.BeaconBlock, error)

CanonicalHead mocks base method

func (*MockBeaconServiceServer) EXPECT

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

func (*MockBeaconServiceServer) LatestAttestation

LatestAttestation mocks base method

func (*MockBeaconServiceServer) WaitForChainStart

WaitForChainStart mocks base method

type MockBeaconServiceServerMockRecorder

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

MockBeaconServiceServerMockRecorder is the mock recorder for MockBeaconServiceServer

func (*MockBeaconServiceServerMockRecorder) CanonicalHead

func (mr *MockBeaconServiceServerMockRecorder) CanonicalHead(arg0, arg1 interface{}) *gomock.Call

CanonicalHead indicates an expected call of CanonicalHead

func (*MockBeaconServiceServerMockRecorder) LatestAttestation

func (mr *MockBeaconServiceServerMockRecorder) LatestAttestation(arg0, arg1 interface{}) *gomock.Call

LatestAttestation indicates an expected call of LatestAttestation

func (*MockBeaconServiceServerMockRecorder) WaitForChainStart

func (mr *MockBeaconServiceServerMockRecorder) WaitForChainStart(arg0, arg1 interface{}) *gomock.Call

WaitForChainStart indicates an expected call of WaitForChainStart

type MockBeaconService_LatestAttestationServer

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

MockBeaconService_LatestAttestationServer is a mock of BeaconService_LatestAttestationServer interface

func NewMockBeaconService_LatestAttestationServer

func NewMockBeaconService_LatestAttestationServer(ctrl *gomock.Controller) *MockBeaconService_LatestAttestationServer

NewMockBeaconService_LatestAttestationServer creates a new mock instance

func (*MockBeaconService_LatestAttestationServer) Context

Context mocks base method

func (*MockBeaconService_LatestAttestationServer) EXPECT

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

func (*MockBeaconService_LatestAttestationServer) RecvMsg

func (m *MockBeaconService_LatestAttestationServer) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method

func (*MockBeaconService_LatestAttestationServer) Send

Send mocks base method

func (*MockBeaconService_LatestAttestationServer) SendHeader

SendHeader mocks base method

func (*MockBeaconService_LatestAttestationServer) SendMsg

func (m *MockBeaconService_LatestAttestationServer) SendMsg(arg0 interface{}) error

SendMsg mocks base method

func (*MockBeaconService_LatestAttestationServer) SetHeader

SetHeader mocks base method

func (*MockBeaconService_LatestAttestationServer) SetTrailer

SetTrailer mocks base method

type MockBeaconService_LatestAttestationServerMockRecorder

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

MockBeaconService_LatestAttestationServerMockRecorder is the mock recorder for MockBeaconService_LatestAttestationServer

func (*MockBeaconService_LatestAttestationServerMockRecorder) Context

Context indicates an expected call of Context

func (*MockBeaconService_LatestAttestationServerMockRecorder) RecvMsg

func (mr *MockBeaconService_LatestAttestationServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg

func (*MockBeaconService_LatestAttestationServerMockRecorder) Send

Send indicates an expected call of Send

func (*MockBeaconService_LatestAttestationServerMockRecorder) SendHeader

func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader

func (*MockBeaconService_LatestAttestationServerMockRecorder) SendMsg

func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg

func (*MockBeaconService_LatestAttestationServerMockRecorder) SetHeader

func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader

func (*MockBeaconService_LatestAttestationServerMockRecorder) SetTrailer

func (mr *MockBeaconService_LatestAttestationServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer

type MockBeaconService_WaitForChainStartServer

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

MockBeaconService_WaitForChainStartServer is a mock of BeaconService_WaitForChainStartServer interface

func NewMockBeaconService_WaitForChainStartServer

func NewMockBeaconService_WaitForChainStartServer(ctrl *gomock.Controller) *MockBeaconService_WaitForChainStartServer

NewMockBeaconService_WaitForChainStartServer creates a new mock instance

func (*MockBeaconService_WaitForChainStartServer) Context

Context mocks base method

func (*MockBeaconService_WaitForChainStartServer) EXPECT

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

func (*MockBeaconService_WaitForChainStartServer) RecvMsg

func (m *MockBeaconService_WaitForChainStartServer) RecvMsg(arg0 interface{}) error

RecvMsg mocks base method

func (*MockBeaconService_WaitForChainStartServer) Send

Send mocks base method

func (*MockBeaconService_WaitForChainStartServer) SendHeader

SendHeader mocks base method

func (*MockBeaconService_WaitForChainStartServer) SendMsg

func (m *MockBeaconService_WaitForChainStartServer) SendMsg(arg0 interface{}) error

SendMsg mocks base method

func (*MockBeaconService_WaitForChainStartServer) SetHeader

SetHeader mocks base method

func (*MockBeaconService_WaitForChainStartServer) SetTrailer

SetTrailer mocks base method

type MockBeaconService_WaitForChainStartServerMockRecorder

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

MockBeaconService_WaitForChainStartServerMockRecorder is the mock recorder for MockBeaconService_WaitForChainStartServer

func (*MockBeaconService_WaitForChainStartServerMockRecorder) Context

Context indicates an expected call of Context

func (*MockBeaconService_WaitForChainStartServerMockRecorder) RecvMsg

func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg

func (*MockBeaconService_WaitForChainStartServerMockRecorder) Send

Send indicates an expected call of Send

func (*MockBeaconService_WaitForChainStartServerMockRecorder) SendHeader

func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader

func (*MockBeaconService_WaitForChainStartServerMockRecorder) SendMsg

func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SendMsg(arg0 interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg

func (*MockBeaconService_WaitForChainStartServerMockRecorder) SetHeader

func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader

func (*MockBeaconService_WaitForChainStartServerMockRecorder) SetTrailer

func (mr *MockBeaconService_WaitForChainStartServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer

type MockValidatorServiceClient

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

MockValidatorServiceClient is a mock of ValidatorServiceClient interface

func NewMockValidatorServiceClient

func NewMockValidatorServiceClient(ctrl *gomock.Controller) *MockValidatorServiceClient

NewMockValidatorServiceClient creates a new mock instance

func (*MockValidatorServiceClient) EXPECT

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

func (*MockValidatorServiceClient) ValidatorEpochAssignments

ValidatorEpochAssignments mocks base method

func (*MockValidatorServiceClient) ValidatorIndex

ValidatorIndex mocks base method

type MockValidatorServiceClientMockRecorder

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

MockValidatorServiceClientMockRecorder is the mock recorder for MockValidatorServiceClient

func (*MockValidatorServiceClientMockRecorder) ValidatorEpochAssignments

func (mr *MockValidatorServiceClientMockRecorder) ValidatorEpochAssignments(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ValidatorEpochAssignments indicates an expected call of ValidatorEpochAssignments

func (*MockValidatorServiceClientMockRecorder) ValidatorIndex

func (mr *MockValidatorServiceClientMockRecorder) ValidatorIndex(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ValidatorIndex indicates an expected call of ValidatorIndex

Jump to

Keyboard shortcuts

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