Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBlockService
- type MockBlockServiceMockRecorder
- type MockCoreServiceClient
- func (m *MockCoreServiceClient) CheckRawTransaction(arg0 context.Context, arg1 *v1.CheckRawTransactionRequest, ...) (*v1.CheckRawTransactionResponse, error)
- func (m *MockCoreServiceClient) CheckTransaction(arg0 context.Context, arg1 *v1.CheckTransactionRequest, ...) (*v1.CheckTransactionResponse, error)
- func (m *MockCoreServiceClient) EXPECT() *MockCoreServiceClientMockRecorder
- func (m *MockCoreServiceClient) GetState() connectivity.State
- func (m *MockCoreServiceClient) GetVegaTime(arg0 context.Context, arg1 *v1.GetVegaTimeRequest, arg2 ...grpc.CallOption) (*v1.GetVegaTimeResponse, error)
- func (m *MockCoreServiceClient) LastBlockHeight(arg0 context.Context, arg1 *v1.LastBlockHeightRequest, arg2 ...grpc.CallOption) (*v1.LastBlockHeightResponse, error)
- func (m *MockCoreServiceClient) ObserveEventBus(arg0 context.Context, arg1 ...grpc.CallOption) (v1.CoreService_ObserveEventBusClient, error)
- func (m *MockCoreServiceClient) PropagateChainEvent(arg0 context.Context, arg1 *v1.PropagateChainEventRequest, ...) (*v1.PropagateChainEventResponse, error)
- func (m *MockCoreServiceClient) Statistics(arg0 context.Context, arg1 *v1.StatisticsRequest, arg2 ...grpc.CallOption) (*v1.StatisticsResponse, error)
- func (m *MockCoreServiceClient) SubmitRawTransaction(arg0 context.Context, arg1 *v1.SubmitRawTransactionRequest, ...) (*v1.SubmitRawTransactionResponse, error)
- func (m *MockCoreServiceClient) SubmitTransaction(arg0 context.Context, arg1 *v1.SubmitTransactionRequest, ...) (*v1.SubmitTransactionResponse, error)
- type MockCoreServiceClientMockRecorder
- func (mr *MockCoreServiceClientMockRecorder) CheckRawTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) CheckTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) GetState() *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) GetVegaTime(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) LastBlockHeight(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) ObserveEventBus(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) PropagateChainEvent(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) Statistics(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) SubmitRawTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockCoreServiceClientMockRecorder) SubmitTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockDeHistoryService
- func (m *MockDeHistoryService) CopyHistorySegmentToFile(arg0 context.Context, arg1, arg2 string) error
- func (m *MockDeHistoryService) EXPECT() *MockDeHistoryServiceMockRecorder
- func (m *MockDeHistoryService) FetchHistorySegment(arg0 context.Context, arg1 string) (store.SegmentIndexEntry, error)
- func (m *MockDeHistoryService) GetActivePeerAddresses() []string
- func (m *MockDeHistoryService) GetHighestBlockHeightHistorySegment() (store.SegmentIndexEntry, error)
- func (m *MockDeHistoryService) GetSwarmKey() string
- func (m *MockDeHistoryService) ListAllHistorySegments() ([]store.SegmentIndexEntry, error)
- type MockDeHistoryServiceMockRecorder
- func (mr *MockDeHistoryServiceMockRecorder) CopyHistorySegmentToFile(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDeHistoryServiceMockRecorder) FetchHistorySegment(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDeHistoryServiceMockRecorder) GetActivePeerAddresses() *gomock.Call
- func (mr *MockDeHistoryServiceMockRecorder) GetHighestBlockHeightHistorySegment() *gomock.Call
- func (mr *MockDeHistoryServiceMockRecorder) GetSwarmKey() *gomock.Call
- func (mr *MockDeHistoryServiceMockRecorder) ListAllHistorySegments() *gomock.Call
- type MockEventService
- type MockEventServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlockService ¶ added in v0.56.0
type MockBlockService struct {
// contains filtered or unexported fields
}
MockBlockService is a mock of BlockService interface.
func NewMockBlockService ¶ added in v0.56.0
func NewMockBlockService(ctrl *gomock.Controller) *MockBlockService
NewMockBlockService creates a new mock instance.
func (*MockBlockService) EXPECT ¶ added in v0.56.0
func (m *MockBlockService) EXPECT() *MockBlockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlockService) GetLastBlock ¶ added in v0.56.0
GetLastBlock mocks base method.
type MockBlockServiceMockRecorder ¶ added in v0.56.0
type MockBlockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockServiceMockRecorder is the mock recorder for MockBlockService.
func (*MockBlockServiceMockRecorder) GetLastBlock ¶ added in v0.56.0
func (mr *MockBlockServiceMockRecorder) GetLastBlock(arg0 interface{}) *gomock.Call
GetLastBlock indicates an expected call of GetLastBlock.
type MockCoreServiceClient ¶
type MockCoreServiceClient struct {
// contains filtered or unexported fields
}
MockCoreServiceClient is a mock of CoreServiceClient interface.
func NewMockCoreServiceClient ¶
func NewMockCoreServiceClient(ctrl *gomock.Controller) *MockCoreServiceClient
NewMockCoreServiceClient creates a new mock instance.
func (*MockCoreServiceClient) CheckRawTransaction ¶
func (m *MockCoreServiceClient) CheckRawTransaction(arg0 context.Context, arg1 *v1.CheckRawTransactionRequest, arg2 ...grpc.CallOption) (*v1.CheckRawTransactionResponse, error)
CheckRawTransaction mocks base method.
func (*MockCoreServiceClient) CheckTransaction ¶
func (m *MockCoreServiceClient) CheckTransaction(arg0 context.Context, arg1 *v1.CheckTransactionRequest, arg2 ...grpc.CallOption) (*v1.CheckTransactionResponse, error)
CheckTransaction mocks base method.
func (*MockCoreServiceClient) EXPECT ¶
func (m *MockCoreServiceClient) EXPECT() *MockCoreServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoreServiceClient) GetState ¶ added in v0.56.0
func (m *MockCoreServiceClient) GetState() connectivity.State
GetState mocks base method.
func (*MockCoreServiceClient) GetVegaTime ¶
func (m *MockCoreServiceClient) GetVegaTime(arg0 context.Context, arg1 *v1.GetVegaTimeRequest, arg2 ...grpc.CallOption) (*v1.GetVegaTimeResponse, error)
GetVegaTime mocks base method.
func (*MockCoreServiceClient) LastBlockHeight ¶
func (m *MockCoreServiceClient) LastBlockHeight(arg0 context.Context, arg1 *v1.LastBlockHeightRequest, arg2 ...grpc.CallOption) (*v1.LastBlockHeightResponse, error)
LastBlockHeight mocks base method.
func (*MockCoreServiceClient) ObserveEventBus ¶
func (m *MockCoreServiceClient) ObserveEventBus(arg0 context.Context, arg1 ...grpc.CallOption) (v1.CoreService_ObserveEventBusClient, error)
ObserveEventBus mocks base method.
func (*MockCoreServiceClient) PropagateChainEvent ¶
func (m *MockCoreServiceClient) PropagateChainEvent(arg0 context.Context, arg1 *v1.PropagateChainEventRequest, arg2 ...grpc.CallOption) (*v1.PropagateChainEventResponse, error)
PropagateChainEvent mocks base method.
func (*MockCoreServiceClient) Statistics ¶
func (m *MockCoreServiceClient) Statistics(arg0 context.Context, arg1 *v1.StatisticsRequest, arg2 ...grpc.CallOption) (*v1.StatisticsResponse, error)
Statistics mocks base method.
func (*MockCoreServiceClient) SubmitRawTransaction ¶
func (m *MockCoreServiceClient) SubmitRawTransaction(arg0 context.Context, arg1 *v1.SubmitRawTransactionRequest, arg2 ...grpc.CallOption) (*v1.SubmitRawTransactionResponse, error)
SubmitRawTransaction mocks base method.
func (*MockCoreServiceClient) SubmitTransaction ¶
func (m *MockCoreServiceClient) SubmitTransaction(arg0 context.Context, arg1 *v1.SubmitTransactionRequest, arg2 ...grpc.CallOption) (*v1.SubmitTransactionResponse, error)
SubmitTransaction mocks base method.
type MockCoreServiceClientMockRecorder ¶
type MockCoreServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCoreServiceClientMockRecorder is the mock recorder for MockCoreServiceClient.
func (*MockCoreServiceClientMockRecorder) CheckRawTransaction ¶
func (mr *MockCoreServiceClientMockRecorder) CheckRawTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CheckRawTransaction indicates an expected call of CheckRawTransaction.
func (*MockCoreServiceClientMockRecorder) CheckTransaction ¶
func (mr *MockCoreServiceClientMockRecorder) CheckTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CheckTransaction indicates an expected call of CheckTransaction.
func (*MockCoreServiceClientMockRecorder) GetState ¶ added in v0.56.0
func (mr *MockCoreServiceClientMockRecorder) GetState() *gomock.Call
GetState indicates an expected call of GetState.
func (*MockCoreServiceClientMockRecorder) GetVegaTime ¶
func (mr *MockCoreServiceClientMockRecorder) GetVegaTime(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetVegaTime indicates an expected call of GetVegaTime.
func (*MockCoreServiceClientMockRecorder) LastBlockHeight ¶
func (mr *MockCoreServiceClientMockRecorder) LastBlockHeight(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
LastBlockHeight indicates an expected call of LastBlockHeight.
func (*MockCoreServiceClientMockRecorder) ObserveEventBus ¶
func (mr *MockCoreServiceClientMockRecorder) ObserveEventBus(arg0 interface{}, arg1 ...interface{}) *gomock.Call
ObserveEventBus indicates an expected call of ObserveEventBus.
func (*MockCoreServiceClientMockRecorder) PropagateChainEvent ¶
func (mr *MockCoreServiceClientMockRecorder) PropagateChainEvent(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
PropagateChainEvent indicates an expected call of PropagateChainEvent.
func (*MockCoreServiceClientMockRecorder) Statistics ¶
func (mr *MockCoreServiceClientMockRecorder) Statistics(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Statistics indicates an expected call of Statistics.
func (*MockCoreServiceClientMockRecorder) SubmitRawTransaction ¶
func (mr *MockCoreServiceClientMockRecorder) SubmitRawTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SubmitRawTransaction indicates an expected call of SubmitRawTransaction.
func (*MockCoreServiceClientMockRecorder) SubmitTransaction ¶
func (mr *MockCoreServiceClientMockRecorder) SubmitTransaction(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SubmitTransaction indicates an expected call of SubmitTransaction.
type MockDeHistoryService ¶ added in v0.60.0
type MockDeHistoryService struct {
// contains filtered or unexported fields
}
MockDeHistoryService is a mock of DeHistoryService interface.
func NewMockDeHistoryService ¶ added in v0.60.0
func NewMockDeHistoryService(ctrl *gomock.Controller) *MockDeHistoryService
NewMockDeHistoryService creates a new mock instance.
func (*MockDeHistoryService) CopyHistorySegmentToFile ¶ added in v0.62.0
func (m *MockDeHistoryService) CopyHistorySegmentToFile(arg0 context.Context, arg1, arg2 string) error
CopyHistorySegmentToFile mocks base method.
func (*MockDeHistoryService) EXPECT ¶ added in v0.60.0
func (m *MockDeHistoryService) EXPECT() *MockDeHistoryServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeHistoryService) FetchHistorySegment ¶ added in v0.60.0
func (m *MockDeHistoryService) FetchHistorySegment(arg0 context.Context, arg1 string) (store.SegmentIndexEntry, error)
FetchHistorySegment mocks base method.
func (*MockDeHistoryService) GetActivePeerAddresses ¶ added in v0.60.0
func (m *MockDeHistoryService) GetActivePeerAddresses() []string
GetActivePeerAddresses mocks base method.
func (*MockDeHistoryService) GetHighestBlockHeightHistorySegment ¶ added in v0.60.0
func (m *MockDeHistoryService) GetHighestBlockHeightHistorySegment() (store.SegmentIndexEntry, error)
GetHighestBlockHeightHistorySegment mocks base method.
func (*MockDeHistoryService) GetSwarmKey ¶ added in v0.65.0
func (m *MockDeHistoryService) GetSwarmKey() string
GetSwarmKey mocks base method.
func (*MockDeHistoryService) ListAllHistorySegments ¶ added in v0.60.0
func (m *MockDeHistoryService) ListAllHistorySegments() ([]store.SegmentIndexEntry, error)
ListAllHistorySegments mocks base method.
type MockDeHistoryServiceMockRecorder ¶ added in v0.60.0
type MockDeHistoryServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockDeHistoryServiceMockRecorder is the mock recorder for MockDeHistoryService.
func (*MockDeHistoryServiceMockRecorder) CopyHistorySegmentToFile ¶ added in v0.62.0
func (mr *MockDeHistoryServiceMockRecorder) CopyHistorySegmentToFile(arg0, arg1, arg2 interface{}) *gomock.Call
CopyHistorySegmentToFile indicates an expected call of CopyHistorySegmentToFile.
func (*MockDeHistoryServiceMockRecorder) FetchHistorySegment ¶ added in v0.60.0
func (mr *MockDeHistoryServiceMockRecorder) FetchHistorySegment(arg0, arg1 interface{}) *gomock.Call
FetchHistorySegment indicates an expected call of FetchHistorySegment.
func (*MockDeHistoryServiceMockRecorder) GetActivePeerAddresses ¶ added in v0.60.0
func (mr *MockDeHistoryServiceMockRecorder) GetActivePeerAddresses() *gomock.Call
GetActivePeerAddresses indicates an expected call of GetActivePeerAddresses.
func (*MockDeHistoryServiceMockRecorder) GetHighestBlockHeightHistorySegment ¶ added in v0.60.0
func (mr *MockDeHistoryServiceMockRecorder) GetHighestBlockHeightHistorySegment() *gomock.Call
GetHighestBlockHeightHistorySegment indicates an expected call of GetHighestBlockHeightHistorySegment.
func (*MockDeHistoryServiceMockRecorder) GetSwarmKey ¶ added in v0.65.0
func (mr *MockDeHistoryServiceMockRecorder) GetSwarmKey() *gomock.Call
GetSwarmKey indicates an expected call of GetSwarmKey.
func (*MockDeHistoryServiceMockRecorder) ListAllHistorySegments ¶ added in v0.60.0
func (mr *MockDeHistoryServiceMockRecorder) ListAllHistorySegments() *gomock.Call
ListAllHistorySegments indicates an expected call of ListAllHistorySegments.
type MockEventService ¶
type MockEventService struct {
// contains filtered or unexported fields
}
MockEventService is a mock of EventService interface.
func NewMockEventService ¶
func NewMockEventService(ctrl *gomock.Controller) *MockEventService
NewMockEventService creates a new mock instance.
func (*MockEventService) EXPECT ¶
func (m *MockEventService) EXPECT() *MockEventServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEventService) ObserveEvents ¶
func (m *MockEventService) ObserveEvents(arg0 context.Context, arg1 int, arg2 []events.Type, arg3 int, arg4 ...subscribers.EventFilter) (<-chan []*v1.BusEvent, chan<- int)
ObserveEvents mocks base method.
type MockEventServiceMockRecorder ¶
type MockEventServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockEventServiceMockRecorder is the mock recorder for MockEventService.
func (*MockEventServiceMockRecorder) ObserveEvents ¶
func (mr *MockEventServiceMockRecorder) ObserveEvents(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call
ObserveEvents indicates an expected call of ObserveEvents.