datastoretest

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package datastoretest is a generated GoMock package.

Package datastoretest is a generated GoMock package.

Package datastoretest is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDir

func ReadDir(fs afero.Fs, root string) []string

ReadDir returns the files in the given directory

Types

type MockPublicKeyStore

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

MockPublicKeyStore is a mock of PublicKeyStore interface.

func NewMockPublicKeyStore

func NewMockPublicKeyStore(ctrl *gomock.Controller) *MockPublicKeyStore

NewMockPublicKeyStore creates a new mock instance.

func (*MockPublicKeyStore) EXPECT

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

func (*MockPublicKeyStore) GetPublicKey

func (m *MockPublicKeyStore) GetPublicKey(ctx context.Context, protocol, network string, address []byte) (*datastore.PublicKey, error)

GetPublicKey mocks base method.

func (*MockPublicKeyStore) PutPublicKey

func (m *MockPublicKeyStore) PutPublicKey(ctx context.Context, protocol, network string, address []byte, pubKey *datastore.PublicKey) error

PutPublicKey mocks base method.

type MockPublicKeyStoreMockRecorder

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

MockPublicKeyStoreMockRecorder is the mock recorder for MockPublicKeyStore.

func (*MockPublicKeyStoreMockRecorder) GetPublicKey

func (mr *MockPublicKeyStoreMockRecorder) GetPublicKey(ctx, protocol, network, address interface{}) *gomock.Call

GetPublicKey indicates an expected call of GetPublicKey.

func (*MockPublicKeyStoreMockRecorder) PutPublicKey

func (mr *MockPublicKeyStoreMockRecorder) PutPublicKey(ctx, protocol, network, address, pubKey interface{}) *gomock.Call

PutPublicKey indicates an expected call of PutPublicKey.

type MockRawTransactionStore

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

MockRawTransactionStore is a mock of RawTransactionStore interface.

func NewMockRawTransactionStore

func NewMockRawTransactionStore(ctrl *gomock.Controller) *MockRawTransactionStore

NewMockRawTransactionStore creates a new mock instance.

func (*MockRawTransactionStore) EXPECT

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

func (*MockRawTransactionStore) PutRawTransaction

func (m *MockRawTransactionStore) PutRawTransaction(ctx context.Context, protocol, network string, hash []byte, tx interface{}) error

PutRawTransaction mocks base method.

type MockRawTransactionStoreMockRecorder

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

MockRawTransactionStoreMockRecorder is the mock recorder for MockRawTransactionStore.

func (*MockRawTransactionStoreMockRecorder) PutRawTransaction

func (mr *MockRawTransactionStoreMockRecorder) PutRawTransaction(ctx, protocol, network, hash, tx interface{}) *gomock.Call

PutRawTransaction indicates an expected call of PutRawTransaction.

type MockSyncStore

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

MockSyncStore is a mock of SyncStore interface.

func NewMockSyncStore

func NewMockSyncStore(ctrl *gomock.Controller) *MockSyncStore

NewMockSyncStore creates a new mock instance.

func (*MockSyncStore) EXPECT

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

func (*MockSyncStore) GetBlockNumber

func (m *MockSyncStore) GetBlockNumber(ctx context.Context, protocol, network string) (uint64, error)

GetBlockNumber mocks base method.

func (*MockSyncStore) PutBlockNumber

func (m *MockSyncStore) PutBlockNumber(ctx context.Context, protocol, network string, blockNo uint64) error

PutBlockNumber mocks base method.

type MockSyncStoreMockRecorder

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

MockSyncStoreMockRecorder is the mock recorder for MockSyncStore.

func (*MockSyncStoreMockRecorder) GetBlockNumber

func (mr *MockSyncStoreMockRecorder) GetBlockNumber(ctx, protocol, network interface{}) *gomock.Call

GetBlockNumber indicates an expected call of GetBlockNumber.

func (*MockSyncStoreMockRecorder) PutBlockNumber

func (mr *MockSyncStoreMockRecorder) PutBlockNumber(ctx, protocol, network, blockNo interface{}) *gomock.Call

PutBlockNumber indicates an expected call of PutBlockNumber.

type MockTransactionStore

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

MockTransactionStore is a mock of TransactionStore interface.

func NewMockTransactionStore

func NewMockTransactionStore(ctrl *gomock.Controller) *MockTransactionStore

NewMockTransactionStore creates a new mock instance.

func (*MockTransactionStore) EXPECT

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

func (*MockTransactionStore) GetTransactionsFrom

func (m *MockTransactionStore) GetTransactionsFrom(ctx context.Context, protocol, network string, address []byte) ([]datastore.Transaction, error)

GetTransactionsFrom mocks base method.

func (*MockTransactionStore) GetTransactionsTo

func (m *MockTransactionStore) GetTransactionsTo(ctx context.Context, protocol, network string, address []byte) ([]datastore.Transaction, error)

GetTransactionsTo mocks base method.

func (*MockTransactionStore) PutTransaction

func (m *MockTransactionStore) PutTransaction(ctx context.Context, protocol, network string, hash []byte, tx *datastore.Transaction) error

PutTransaction mocks base method.

type MockTransactionStoreMockRecorder

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

MockTransactionStoreMockRecorder is the mock recorder for MockTransactionStore.

func (*MockTransactionStoreMockRecorder) GetTransactionsFrom

func (mr *MockTransactionStoreMockRecorder) GetTransactionsFrom(ctx, protocol, network, address interface{}) *gomock.Call

GetTransactionsFrom indicates an expected call of GetTransactionsFrom.

func (*MockTransactionStoreMockRecorder) GetTransactionsTo

func (mr *MockTransactionStoreMockRecorder) GetTransactionsTo(ctx, protocol, network, address interface{}) *gomock.Call

GetTransactionsTo indicates an expected call of GetTransactionsTo.

func (*MockTransactionStoreMockRecorder) PutTransaction

func (mr *MockTransactionStoreMockRecorder) PutTransaction(ctx, protocol, network, hash, tx interface{}) *gomock.Call

PutTransaction indicates an expected call of PutTransaction.

Jump to

Keyboard shortcuts

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