mock

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./chains/evm/listener/handlers/stateRoot.go

Generated by this command:

mockgen -source=./chains/evm/listener/handlers/stateRoot.go -destination=./mock/stateRoot.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./chains/evm/message/stateRoot.go

Generated by this command:

mockgen -source=./chains/evm/message/stateRoot.go -destination=./mock/stateRootMessage.go -package mock

Package mock is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: github.com/sygmaprotocol/sygma-core/store (interfaces: KeyValueReaderWriter)

Generated by this command:

mockgen -destination=./mock/store.go -package mock github.com/sygmaprotocol/sygma-core/store KeyValueReaderWriter

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockFetcher

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

MockBlockFetcher is a mock of BlockFetcher interface.

func NewMockBlockFetcher

func NewMockBlockFetcher(ctrl *gomock.Controller) *MockBlockFetcher

NewMockBlockFetcher creates a new mock instance.

func (*MockBlockFetcher) EXPECT

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

func (*MockBlockFetcher) SignedBeaconBlock

SignedBeaconBlock mocks base method.

type MockBlockFetcherMockRecorder

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

MockBlockFetcherMockRecorder is the mock recorder for MockBlockFetcher.

func (*MockBlockFetcherMockRecorder) SignedBeaconBlock

func (mr *MockBlockFetcherMockRecorder) SignedBeaconBlock(ctx, opts any) *gomock.Call

SignedBeaconBlock indicates an expected call of SignedBeaconBlock.

type MockBlockStorer

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

MockBlockStorer is a mock of BlockStorer interface.

func NewMockBlockStorer

func NewMockBlockStorer(ctrl *gomock.Controller) *MockBlockStorer

NewMockBlockStorer creates a new mock instance.

func (*MockBlockStorer) EXPECT

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

func (*MockBlockStorer) LatestBlock

func (m *MockBlockStorer) LatestBlock(sourceDomainID, destinationDomainID uint8) (*big.Int, error)

LatestBlock mocks base method.

func (*MockBlockStorer) StoreBlock

func (m *MockBlockStorer) StoreBlock(sourceDomainID, destinationDomainID uint8, blockNumber *big.Int) error

StoreBlock mocks base method.

type MockBlockStorerMockRecorder

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

MockBlockStorerMockRecorder is the mock recorder for MockBlockStorer.

func (*MockBlockStorerMockRecorder) LatestBlock

func (mr *MockBlockStorerMockRecorder) LatestBlock(sourceDomainID, destinationDomainID any) *gomock.Call

LatestBlock indicates an expected call of LatestBlock.

func (*MockBlockStorerMockRecorder) StoreBlock

func (mr *MockBlockStorerMockRecorder) StoreBlock(sourceDomainID, destinationDomainID, blockNumber any) *gomock.Call

StoreBlock indicates an expected call of StoreBlock.

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) CallContext

func (m *MockClient) CallContext(ctx context.Context, target any, rpcMethod string, args ...any) error

CallContext mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) FetchEventLogs

func (m *MockClient) FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, startBlock, endBlock *big.Int) ([]types.Log, error)

FetchEventLogs mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) CallContext

func (mr *MockClientMockRecorder) CallContext(ctx, target, rpcMethod any, args ...any) *gomock.Call

CallContext indicates an expected call of CallContext.

func (*MockClientMockRecorder) FetchEventLogs

func (mr *MockClientMockRecorder) FetchEventLogs(ctx, contractAddress, event, startBlock, endBlock any) *gomock.Call

FetchEventLogs indicates an expected call of FetchEventLogs.

type MockEventFetcher

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

MockEventFetcher is a mock of EventFetcher interface.

func NewMockEventFetcher

func NewMockEventFetcher(ctrl *gomock.Controller) *MockEventFetcher

NewMockEventFetcher creates a new mock instance.

func (*MockEventFetcher) EXPECT

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

func (*MockEventFetcher) FetchEventLogs

func (m *MockEventFetcher) FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, startBlock, endBlock *big.Int) ([]types.Log, error)

FetchEventLogs mocks base method.

type MockEventFetcherMockRecorder

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

MockEventFetcherMockRecorder is the mock recorder for MockEventFetcher.

func (*MockEventFetcherMockRecorder) FetchEventLogs

func (mr *MockEventFetcherMockRecorder) FetchEventLogs(ctx, contractAddress, event, startBlock, endBlock any) *gomock.Call

FetchEventLogs indicates an expected call of FetchEventLogs.

type MockKeyValueReaderWriter

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

MockKeyValueReaderWriter is a mock of KeyValueReaderWriter interface.

func NewMockKeyValueReaderWriter

func NewMockKeyValueReaderWriter(ctrl *gomock.Controller) *MockKeyValueReaderWriter

NewMockKeyValueReaderWriter creates a new mock instance.

func (*MockKeyValueReaderWriter) EXPECT

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

func (*MockKeyValueReaderWriter) GetByKey

func (m *MockKeyValueReaderWriter) GetByKey(arg0 []byte) ([]byte, error)

GetByKey mocks base method.

func (*MockKeyValueReaderWriter) SetByKey

func (m *MockKeyValueReaderWriter) SetByKey(arg0, arg1 []byte) error

SetByKey mocks base method.

type MockKeyValueReaderWriterMockRecorder

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

MockKeyValueReaderWriterMockRecorder is the mock recorder for MockKeyValueReaderWriter.

func (*MockKeyValueReaderWriterMockRecorder) GetByKey

GetByKey indicates an expected call of GetByKey.

func (*MockKeyValueReaderWriterMockRecorder) SetByKey

func (mr *MockKeyValueReaderWriterMockRecorder) SetByKey(arg0, arg1 any) *gomock.Call

SetByKey indicates an expected call of SetByKey.

Jump to

Keyboard shortcuts

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