mocks

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 10 Imported by: 0

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.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuth

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

MockAuth is a mock of Auth interface.

func NewMockAuth

func NewMockAuth(ctrl *gomock.Controller) *MockAuth

NewMockAuth creates a new mock instance.

func (*MockAuth) EXPECT

func (m *MockAuth) EXPECT() *MockAuthMockRecorder

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

func (*MockAuth) NewSession

func (m *MockAuth) NewSession(arg0 string) (string, error)

NewSession mocks base method.

func (*MockAuth) Revoke

func (m *MockAuth) Revoke(arg0 string) (string, error)

Revoke mocks base method.

func (*MockAuth) VerifyToken

func (m *MockAuth) VerifyToken(arg0 string) (string, error)

VerifyToken mocks base method.

type MockAuthMockRecorder

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

MockAuthMockRecorder is the mock recorder for MockAuth.

func (*MockAuthMockRecorder) NewSession

func (mr *MockAuthMockRecorder) NewSession(arg0 interface{}) *gomock.Call

NewSession indicates an expected call of NewSession.

func (*MockAuthMockRecorder) Revoke

func (mr *MockAuthMockRecorder) Revoke(arg0 interface{}) *gomock.Call

Revoke indicates an expected call of Revoke.

func (*MockAuthMockRecorder) VerifyToken

func (mr *MockAuthMockRecorder) VerifyToken(arg0 interface{}) *gomock.Call

VerifyToken indicates an expected call of VerifyToken.

type MockConsentPolicy

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

func NewMockConsentPolicy

func NewMockConsentPolicy(pending chan service.ConsentRequest, sentTxs chan service.SentTransaction) *MockConsentPolicy

func (*MockConsentPolicy) Ask

func (p *MockConsentPolicy) Ask(tx *v1.SubmitTransactionRequest, txID string, receivedAt time.Time) (bool, error)

func (*MockConsentPolicy) Report

type MockNodeForward

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

MockNodeForward is a mock of NodeForward interface.

func NewMockNodeForward

func NewMockNodeForward(ctrl *gomock.Controller) *MockNodeForward

NewMockNodeForward creates a new mock instance.

func (*MockNodeForward) CheckTx

CheckTx mocks base method.

func (*MockNodeForward) EXPECT

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

func (*MockNodeForward) HealthCheck

func (m *MockNodeForward) HealthCheck(arg0 context.Context) error

HealthCheck mocks base method.

func (*MockNodeForward) LastBlockHeightAndHash

func (m *MockNodeForward) LastBlockHeightAndHash(arg0 context.Context) (*v1.LastBlockHeightResponse, int, error)

LastBlockHeightAndHash mocks base method.

func (*MockNodeForward) SendTx

SendTx mocks base method.

type MockNodeForwardMockRecorder

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

MockNodeForwardMockRecorder is the mock recorder for MockNodeForward.

func (*MockNodeForwardMockRecorder) CheckTx

func (mr *MockNodeForwardMockRecorder) CheckTx(arg0, arg1, arg2 interface{}) *gomock.Call

CheckTx indicates an expected call of CheckTx.

func (*MockNodeForwardMockRecorder) HealthCheck

func (mr *MockNodeForwardMockRecorder) HealthCheck(arg0 interface{}) *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*MockNodeForwardMockRecorder) LastBlockHeightAndHash

func (mr *MockNodeForwardMockRecorder) LastBlockHeightAndHash(arg0 interface{}) *gomock.Call

LastBlockHeightAndHash indicates an expected call of LastBlockHeightAndHash.

func (*MockNodeForwardMockRecorder) SendTx

func (mr *MockNodeForwardMockRecorder) SendTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendTx indicates an expected call of SendTx.

type MockProofOfWork added in v0.65.0

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

MockProofOfWork is a mock of ProofOfWork interface.

func NewMockProofOfWork added in v0.65.0

func NewMockProofOfWork(ctrl *gomock.Controller) *MockProofOfWork

NewMockProofOfWork creates a new mock instance.

func (*MockProofOfWork) EXPECT added in v0.65.0

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

func (*MockProofOfWork) Generate added in v0.65.0

func (m *MockProofOfWork) Generate(arg0 string, arg1 *types.LastBlock) (*v1.ProofOfWork, error)

Generate mocks base method.

type MockProofOfWorkMockRecorder added in v0.65.0

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

MockProofOfWorkMockRecorder is the mock recorder for MockProofOfWork.

func (*MockProofOfWorkMockRecorder) Generate added in v0.65.0

func (mr *MockProofOfWorkMockRecorder) Generate(arg0, arg1 interface{}) *gomock.Call

Generate indicates an expected call of Generate.

type MockRSAStore

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

MockRSAStore is a mock of RSAStore interface.

func NewMockRSAStore

func NewMockRSAStore(ctrl *gomock.Controller) *MockRSAStore

NewMockRSAStore creates a new mock instance.

func (*MockRSAStore) EXPECT

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

func (*MockRSAStore) GetRsaKeys

func (m *MockRSAStore) GetRsaKeys() (*service.RSAKeys, error)

GetRsaKeys mocks base method.

type MockRSAStoreMockRecorder

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

MockRSAStoreMockRecorder is the mock recorder for MockRSAStore.

func (*MockRSAStoreMockRecorder) GetRsaKeys

func (mr *MockRSAStoreMockRecorder) GetRsaKeys() *gomock.Call

GetRsaKeys indicates an expected call of GetRsaKeys.

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) RSAKeysExists

func (m *MockStore) RSAKeysExists() (bool, error)

RSAKeysExists mocks base method.

func (*MockStore) SaveRSAKeys

func (m *MockStore) SaveRSAKeys(arg0 *service.RSAKeys) error

SaveRSAKeys mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) RSAKeysExists

func (mr *MockStoreMockRecorder) RSAKeysExists() *gomock.Call

RSAKeysExists indicates an expected call of RSAKeysExists.

func (*MockStoreMockRecorder) SaveRSAKeys

func (mr *MockStoreMockRecorder) SaveRSAKeys(arg0 interface{}) *gomock.Call

SaveRSAKeys indicates an expected call of SaveRSAKeys.

type MockWalletHandler

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

MockWalletHandler is a mock of WalletHandler interface.

func NewMockWalletHandler

func NewMockWalletHandler(ctrl *gomock.Controller) *MockWalletHandler

NewMockWalletHandler creates a new mock instance.

func (*MockWalletHandler) CreateWallet

func (m *MockWalletHandler) CreateWallet(arg0, arg1 string) (string, error)

CreateWallet mocks base method.

func (*MockWalletHandler) EXPECT

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

func (*MockWalletHandler) GetPublicKey

func (m *MockWalletHandler) GetPublicKey(arg0, arg1 string) (wallet.PublicKey, error)

GetPublicKey mocks base method.

func (*MockWalletHandler) ImportWallet

func (m *MockWalletHandler) ImportWallet(arg0, arg1, arg2 string, arg3 uint32) error

ImportWallet mocks base method.

func (*MockWalletHandler) ListPublicKeys

func (m *MockWalletHandler) ListPublicKeys(arg0 string) ([]wallet.PublicKey, error)

ListPublicKeys mocks base method.

func (*MockWalletHandler) LoginWallet

func (m *MockWalletHandler) LoginWallet(arg0, arg1 string) error

LoginWallet mocks base method.

func (*MockWalletHandler) LogoutWallet

func (m *MockWalletHandler) LogoutWallet(arg0 string)

LogoutWallet mocks base method.

func (*MockWalletHandler) SecureGenerateKeyPair

func (m *MockWalletHandler) SecureGenerateKeyPair(arg0, arg1 string, arg2 []wallet.Metadata) (string, error)

SecureGenerateKeyPair mocks base method.

func (*MockWalletHandler) SignAny

func (m *MockWalletHandler) SignAny(arg0 string, arg1 []byte, arg2 string) ([]byte, error)

SignAny mocks base method.

func (*MockWalletHandler) SignTx

func (m *MockWalletHandler) SignTx(arg0 string, arg1 *v10.SubmitTransactionRequest, arg2 uint64, arg3 string) (*v1.Transaction, error)

SignTx mocks base method.

func (*MockWalletHandler) TaintKey

func (m *MockWalletHandler) TaintKey(arg0, arg1, arg2 string) error

TaintKey mocks base method.

func (*MockWalletHandler) UpdateMeta

func (m *MockWalletHandler) UpdateMeta(arg0, arg1, arg2 string, arg3 []wallet.Metadata) error

UpdateMeta mocks base method.

func (*MockWalletHandler) VerifyAny

func (m *MockWalletHandler) VerifyAny(arg0, arg1 []byte, arg2 string) (bool, error)

VerifyAny mocks base method.

type MockWalletHandlerMockRecorder

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

MockWalletHandlerMockRecorder is the mock recorder for MockWalletHandler.

func (*MockWalletHandlerMockRecorder) CreateWallet

func (mr *MockWalletHandlerMockRecorder) CreateWallet(arg0, arg1 interface{}) *gomock.Call

CreateWallet indicates an expected call of CreateWallet.

func (*MockWalletHandlerMockRecorder) GetPublicKey

func (mr *MockWalletHandlerMockRecorder) GetPublicKey(arg0, arg1 interface{}) *gomock.Call

GetPublicKey indicates an expected call of GetPublicKey.

func (*MockWalletHandlerMockRecorder) ImportWallet

func (mr *MockWalletHandlerMockRecorder) ImportWallet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ImportWallet indicates an expected call of ImportWallet.

func (*MockWalletHandlerMockRecorder) ListPublicKeys

func (mr *MockWalletHandlerMockRecorder) ListPublicKeys(arg0 interface{}) *gomock.Call

ListPublicKeys indicates an expected call of ListPublicKeys.

func (*MockWalletHandlerMockRecorder) LoginWallet

func (mr *MockWalletHandlerMockRecorder) LoginWallet(arg0, arg1 interface{}) *gomock.Call

LoginWallet indicates an expected call of LoginWallet.

func (*MockWalletHandlerMockRecorder) LogoutWallet

func (mr *MockWalletHandlerMockRecorder) LogoutWallet(arg0 interface{}) *gomock.Call

LogoutWallet indicates an expected call of LogoutWallet.

func (*MockWalletHandlerMockRecorder) SecureGenerateKeyPair

func (mr *MockWalletHandlerMockRecorder) SecureGenerateKeyPair(arg0, arg1, arg2 interface{}) *gomock.Call

SecureGenerateKeyPair indicates an expected call of SecureGenerateKeyPair.

func (*MockWalletHandlerMockRecorder) SignAny

func (mr *MockWalletHandlerMockRecorder) SignAny(arg0, arg1, arg2 interface{}) *gomock.Call

SignAny indicates an expected call of SignAny.

func (*MockWalletHandlerMockRecorder) SignTx

func (mr *MockWalletHandlerMockRecorder) SignTx(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SignTx indicates an expected call of SignTx.

func (*MockWalletHandlerMockRecorder) TaintKey

func (mr *MockWalletHandlerMockRecorder) TaintKey(arg0, arg1, arg2 interface{}) *gomock.Call

TaintKey indicates an expected call of TaintKey.

func (*MockWalletHandlerMockRecorder) UpdateMeta

func (mr *MockWalletHandlerMockRecorder) UpdateMeta(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UpdateMeta indicates an expected call of UpdateMeta.

func (*MockWalletHandlerMockRecorder) VerifyAny

func (mr *MockWalletHandlerMockRecorder) VerifyAny(arg0, arg1, arg2 interface{}) *gomock.Call

VerifyAny indicates an expected call of VerifyAny.

Jump to

Keyboard shortcuts

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