mock

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

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 MockExtPrivkeyApi

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

MockExtPrivkeyApi is a mock of ExtPrivkeyApi interface.

func NewMockExtPrivkeyApi

func NewMockExtPrivkeyApi(ctrl *gomock.Controller) *MockExtPrivkeyApi

NewMockExtPrivkeyApi creates a new mock instance.

func (*MockExtPrivkeyApi) EXPECT

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

func (*MockExtPrivkeyApi) GetData

func (m *MockExtPrivkeyApi) GetData(extPrivkey *types.ExtPrivkey) (*types.ExtkeyData, error)

GetData mocks base method.

func (*MockExtPrivkeyApi) GetExtPrivkeyByPath

func (m *MockExtPrivkeyApi) GetExtPrivkeyByPath(extPrivkey *types.ExtPrivkey, bip32Path string) (*types.ExtPrivkey, error)

GetExtPrivkeyByPath mocks base method.

func (*MockExtPrivkeyApi) GetExtPubkey

func (m *MockExtPrivkeyApi) GetExtPubkey(extPrivkey *types.ExtPrivkey) (*types.ExtPubkey, error)

GetExtPubkey mocks base method.

func (*MockExtPrivkeyApi) GetPrivkey

func (m *MockExtPrivkeyApi) GetPrivkey(extPrivkey *types.ExtPrivkey) (*types.Privkey, error)

GetPrivkey mocks base method.

func (*MockExtPrivkeyApi) GetPubkey

func (m *MockExtPrivkeyApi) GetPubkey(extPrivkey *types.ExtPrivkey) (*types.Pubkey, error)

GetPubkey mocks base method.

type MockExtPrivkeyApiMockRecorder

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

MockExtPrivkeyApiMockRecorder is the mock recorder for MockExtPrivkeyApi.

func (*MockExtPrivkeyApiMockRecorder) GetData

func (mr *MockExtPrivkeyApiMockRecorder) GetData(extPrivkey interface{}) *gomock.Call

GetData indicates an expected call of GetData.

func (*MockExtPrivkeyApiMockRecorder) GetExtPrivkeyByPath

func (mr *MockExtPrivkeyApiMockRecorder) GetExtPrivkeyByPath(extPrivkey, bip32Path interface{}) *gomock.Call

GetExtPrivkeyByPath indicates an expected call of GetExtPrivkeyByPath.

func (*MockExtPrivkeyApiMockRecorder) GetExtPubkey

func (mr *MockExtPrivkeyApiMockRecorder) GetExtPubkey(extPrivkey interface{}) *gomock.Call

GetExtPubkey indicates an expected call of GetExtPubkey.

func (*MockExtPrivkeyApiMockRecorder) GetPrivkey

func (mr *MockExtPrivkeyApiMockRecorder) GetPrivkey(extPrivkey interface{}) *gomock.Call

GetPrivkey indicates an expected call of GetPrivkey.

func (*MockExtPrivkeyApiMockRecorder) GetPubkey

func (mr *MockExtPrivkeyApiMockRecorder) GetPubkey(extPrivkey interface{}) *gomock.Call

GetPubkey indicates an expected call of GetPubkey.

type MockExtPubkeyApi

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

MockExtPubkeyApi is a mock of ExtPubkeyApi interface.

func NewMockExtPubkeyApi

func NewMockExtPubkeyApi(ctrl *gomock.Controller) *MockExtPubkeyApi

NewMockExtPubkeyApi creates a new mock instance.

func (*MockExtPubkeyApi) EXPECT

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

func (*MockExtPubkeyApi) GetData

func (m *MockExtPubkeyApi) GetData(extPubkey *types.ExtPubkey) (*types.ExtkeyData, error)

GetData mocks base method.

func (*MockExtPubkeyApi) GetExtPubkeyByPath

func (m *MockExtPubkeyApi) GetExtPubkeyByPath(extPubkey *types.ExtPubkey, bip32Path string) (*types.ExtPubkey, error)

GetExtPubkeyByPath mocks base method.

func (*MockExtPubkeyApi) GetPubkey

func (m *MockExtPubkeyApi) GetPubkey(extPubkey *types.ExtPubkey) (*types.Pubkey, error)

GetPubkey mocks base method.

type MockExtPubkeyApiMockRecorder

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

MockExtPubkeyApiMockRecorder is the mock recorder for MockExtPubkeyApi.

func (*MockExtPubkeyApiMockRecorder) GetData

func (mr *MockExtPubkeyApiMockRecorder) GetData(extPubkey interface{}) *gomock.Call

GetData indicates an expected call of GetData.

func (*MockExtPubkeyApiMockRecorder) GetExtPubkeyByPath

func (mr *MockExtPubkeyApiMockRecorder) GetExtPubkeyByPath(extPubkey, bip32Path interface{}) *gomock.Call

GetExtPubkeyByPath indicates an expected call of GetExtPubkeyByPath.

func (*MockExtPubkeyApiMockRecorder) GetPubkey

func (mr *MockExtPubkeyApiMockRecorder) GetPubkey(extPubkey interface{}) *gomock.Call

GetPubkey indicates an expected call of GetPubkey.

type MockHdWalletApi

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

MockHdWalletApi is a mock of HdWalletApi interface.

func NewMockHdWalletApi

func NewMockHdWalletApi(ctrl *gomock.Controller) *MockHdWalletApi

NewMockHdWalletApi creates a new mock instance.

func (*MockHdWalletApi) EXPECT

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

func (*MockHdWalletApi) GetExtPrivkey

func (m *MockHdWalletApi) GetExtPrivkey(seed *types.ByteData) (*types.ExtPrivkey, error)

GetExtPrivkey mocks base method.

func (*MockHdWalletApi) GetExtPrivkeyByPath

func (m *MockHdWalletApi) GetExtPrivkeyByPath(seed *types.ByteData, bip32Path string) (*types.ExtPrivkey, error)

GetExtPrivkeyByPath mocks base method.

func (*MockHdWalletApi) GetExtPubkeyByPath

func (m *MockHdWalletApi) GetExtPubkeyByPath(seed *types.ByteData, bip32Path string) (*types.ExtPubkey, error)

GetExtPubkeyByPath mocks base method.

func (*MockHdWalletApi) GetMnemonicFromEntropy

func (m *MockHdWalletApi) GetMnemonicFromEntropy(entropy *types.ByteData, language string) (*[]string, error)

GetMnemonicFromEntropy mocks base method.

func (*MockHdWalletApi) GetMnemonicFromEntropyEng

func (m *MockHdWalletApi) GetMnemonicFromEntropyEng(entropy *types.ByteData) (*[]string, error)

GetMnemonicFromEntropyEng mocks base method.

func (*MockHdWalletApi) GetSeedFromMnemonic

func (m *MockHdWalletApi) GetSeedFromMnemonic(mnemonic []string, language string) (*types.ByteData, *types.ByteData, error)

GetSeedFromMnemonic mocks base method.

func (*MockHdWalletApi) GetSeedFromMnemonicAndPassphrase

func (m *MockHdWalletApi) GetSeedFromMnemonicAndPassphrase(mnemonic []string, language, passphrase string) (*types.ByteData, *types.ByteData, error)

GetSeedFromMnemonicAndPassphrase mocks base method.

func (*MockHdWalletApi) GetSeedFromMnemonicEng

func (m *MockHdWalletApi) GetSeedFromMnemonicEng(mnemonic []string) (*types.ByteData, *types.ByteData, error)

GetSeedFromMnemonicEng mocks base method.

func (*MockHdWalletApi) GetSeedFromMnemonicEngAndPassphrase

func (m *MockHdWalletApi) GetSeedFromMnemonicEngAndPassphrase(mnemonic []string, passphrase string) (*types.ByteData, *types.ByteData, error)

GetSeedFromMnemonicEngAndPassphrase mocks base method.

type MockHdWalletApiMockRecorder

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

MockHdWalletApiMockRecorder is the mock recorder for MockHdWalletApi.

func (*MockHdWalletApiMockRecorder) GetExtPrivkey

func (mr *MockHdWalletApiMockRecorder) GetExtPrivkey(seed interface{}) *gomock.Call

GetExtPrivkey indicates an expected call of GetExtPrivkey.

func (*MockHdWalletApiMockRecorder) GetExtPrivkeyByPath

func (mr *MockHdWalletApiMockRecorder) GetExtPrivkeyByPath(seed, bip32Path interface{}) *gomock.Call

GetExtPrivkeyByPath indicates an expected call of GetExtPrivkeyByPath.

func (*MockHdWalletApiMockRecorder) GetExtPubkeyByPath

func (mr *MockHdWalletApiMockRecorder) GetExtPubkeyByPath(seed, bip32Path interface{}) *gomock.Call

GetExtPubkeyByPath indicates an expected call of GetExtPubkeyByPath.

func (*MockHdWalletApiMockRecorder) GetMnemonicFromEntropy

func (mr *MockHdWalletApiMockRecorder) GetMnemonicFromEntropy(entropy, language interface{}) *gomock.Call

GetMnemonicFromEntropy indicates an expected call of GetMnemonicFromEntropy.

func (*MockHdWalletApiMockRecorder) GetMnemonicFromEntropyEng

func (mr *MockHdWalletApiMockRecorder) GetMnemonicFromEntropyEng(entropy interface{}) *gomock.Call

GetMnemonicFromEntropyEng indicates an expected call of GetMnemonicFromEntropyEng.

func (*MockHdWalletApiMockRecorder) GetSeedFromMnemonic

func (mr *MockHdWalletApiMockRecorder) GetSeedFromMnemonic(mnemonic, language interface{}) *gomock.Call

GetSeedFromMnemonic indicates an expected call of GetSeedFromMnemonic.

func (*MockHdWalletApiMockRecorder) GetSeedFromMnemonicAndPassphrase

func (mr *MockHdWalletApiMockRecorder) GetSeedFromMnemonicAndPassphrase(mnemonic, language, passphrase interface{}) *gomock.Call

GetSeedFromMnemonicAndPassphrase indicates an expected call of GetSeedFromMnemonicAndPassphrase.

func (*MockHdWalletApiMockRecorder) GetSeedFromMnemonicEng

func (mr *MockHdWalletApiMockRecorder) GetSeedFromMnemonicEng(mnemonic interface{}) *gomock.Call

GetSeedFromMnemonicEng indicates an expected call of GetSeedFromMnemonicEng.

func (*MockHdWalletApiMockRecorder) GetSeedFromMnemonicEngAndPassphrase

func (mr *MockHdWalletApiMockRecorder) GetSeedFromMnemonicEngAndPassphrase(mnemonic, passphrase interface{}) *gomock.Call

GetSeedFromMnemonicEngAndPassphrase indicates an expected call of GetSeedFromMnemonicEngAndPassphrase.

type MockPrivkeyApi

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

MockPrivkeyApi is a mock of PrivkeyApi interface.

func NewMockPrivkeyApi

func NewMockPrivkeyApi(ctrl *gomock.Controller) *MockPrivkeyApi

NewMockPrivkeyApi creates a new mock instance.

func (*MockPrivkeyApi) CreateEcSignature

func (m *MockPrivkeyApi) CreateEcSignature(privkey *types.Privkey, sighash *types.ByteData, sighashType *types.SigHashType) (*types.ByteData, error)

CreateEcSignature mocks base method.

func (*MockPrivkeyApi) CreateEcSignatureGrindR

func (m *MockPrivkeyApi) CreateEcSignatureGrindR(privkey *types.Privkey, sighash *types.ByteData, sighashType *types.SigHashType, grindR bool) (*types.ByteData, error)

CreateEcSignatureGrindR mocks base method.

func (*MockPrivkeyApi) EXPECT

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

func (*MockPrivkeyApi) GetPrivkeyFromWif

func (m *MockPrivkeyApi) GetPrivkeyFromWif(wif string) (*types.Privkey, error)

GetPrivkeyFromWif mocks base method.

func (*MockPrivkeyApi) GetPubkey

func (m *MockPrivkeyApi) GetPubkey(privkey *types.Privkey) (*types.Pubkey, error)

GetPubkey mocks base method.

func (*MockPrivkeyApi) GetWifFromHex

func (m *MockPrivkeyApi) GetWifFromHex(privkeyHex string) (*types.Privkey, error)

GetWifFromHex mocks base method.

func (*MockPrivkeyApi) GetWifFromHexWithCompressedPubkey

func (m *MockPrivkeyApi) GetWifFromHexWithCompressedPubkey(privkeyHex string, compressedPubkey bool) (*types.Privkey, error)

GetWifFromHexWithCompressedPubkey mocks base method.

func (*MockPrivkeyApi) HasWif

func (m *MockPrivkeyApi) HasWif(wif string) bool

HasWif mocks base method.

type MockPrivkeyApiMockRecorder

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

MockPrivkeyApiMockRecorder is the mock recorder for MockPrivkeyApi.

func (*MockPrivkeyApiMockRecorder) CreateEcSignature

func (mr *MockPrivkeyApiMockRecorder) CreateEcSignature(privkey, sighash, sighashType interface{}) *gomock.Call

CreateEcSignature indicates an expected call of CreateEcSignature.

func (*MockPrivkeyApiMockRecorder) CreateEcSignatureGrindR

func (mr *MockPrivkeyApiMockRecorder) CreateEcSignatureGrindR(privkey, sighash, sighashType, grindR interface{}) *gomock.Call

CreateEcSignatureGrindR indicates an expected call of CreateEcSignatureGrindR.

func (*MockPrivkeyApiMockRecorder) GetPrivkeyFromWif

func (mr *MockPrivkeyApiMockRecorder) GetPrivkeyFromWif(wif interface{}) *gomock.Call

GetPrivkeyFromWif indicates an expected call of GetPrivkeyFromWif.

func (*MockPrivkeyApiMockRecorder) GetPubkey

func (mr *MockPrivkeyApiMockRecorder) GetPubkey(privkey interface{}) *gomock.Call

GetPubkey indicates an expected call of GetPubkey.

func (*MockPrivkeyApiMockRecorder) GetWifFromHex

func (mr *MockPrivkeyApiMockRecorder) GetWifFromHex(privkeyHex interface{}) *gomock.Call

GetWifFromHex indicates an expected call of GetWifFromHex.

func (*MockPrivkeyApiMockRecorder) GetWifFromHexWithCompressedPubkey

func (mr *MockPrivkeyApiMockRecorder) GetWifFromHexWithCompressedPubkey(privkeyHex, compressedPubkey interface{}) *gomock.Call

GetWifFromHexWithCompressedPubkey indicates an expected call of GetWifFromHexWithCompressedPubkey.

func (*MockPrivkeyApiMockRecorder) HasWif

func (mr *MockPrivkeyApiMockRecorder) HasWif(wif interface{}) *gomock.Call

HasWif indicates an expected call of HasWif.

type MockPubkeyApi

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

MockPubkeyApi is a mock of PubkeyApi interface.

func NewMockPubkeyApi

func NewMockPubkeyApi(ctrl *gomock.Controller) *MockPubkeyApi

NewMockPubkeyApi creates a new mock instance.

func (*MockPubkeyApi) EXPECT

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

func (*MockPubkeyApi) IsCompressed

func (m *MockPubkeyApi) IsCompressed(pubkey *types.Pubkey) error

IsCompressed mocks base method.

func (*MockPubkeyApi) Verify

func (m *MockPubkeyApi) Verify(pubkey *types.Pubkey) error

Verify mocks base method.

func (*MockPubkeyApi) VerifyEcSignature

func (m *MockPubkeyApi) VerifyEcSignature(pubkey *types.Pubkey, sighash, signature string) (bool, error)

VerifyEcSignature mocks base method.

type MockPubkeyApiMockRecorder

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

MockPubkeyApiMockRecorder is the mock recorder for MockPubkeyApi.

func (*MockPubkeyApiMockRecorder) IsCompressed

func (mr *MockPubkeyApiMockRecorder) IsCompressed(pubkey interface{}) *gomock.Call

IsCompressed indicates an expected call of IsCompressed.

func (*MockPubkeyApiMockRecorder) Verify

func (mr *MockPubkeyApiMockRecorder) Verify(pubkey interface{}) *gomock.Call

Verify indicates an expected call of Verify.

func (*MockPubkeyApiMockRecorder) VerifyEcSignature

func (mr *MockPubkeyApiMockRecorder) VerifyEcSignature(pubkey, sighash, signature interface{}) *gomock.Call

VerifyEcSignature indicates an expected call of VerifyEcSignature.

Jump to

Keyboard shortcuts

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