Documentation
¶
Overview ¶
Package mock_wallet is a generated GoMock package.
Index ¶
- type MockWallet
- func (m *MockWallet) Close()
- func (m *MockWallet) Create(name, passphrase, pubKeyStr, privKeyStr string) error
- func (m *MockWallet) EXPECT() *MockWalletMockRecorder
- func (m *MockWallet) GenerateNewKey() (string, string, error)
- func (m *MockWallet) GetUnlockedAccount(name string) (*wallet.PrivAccount, bool)
- func (m *MockWallet) Info(name string) string
- func (m *MockWallet) IsExist(name string) bool
- func (m *MockWallet) IsLocked(name string) bool
- func (m *MockWallet) List() []string
- func (m *MockWallet) Load(name string) error
- func (m *MockWallet) Lock(name string) error
- func (m *MockWallet) Name() string
- func (m *MockWallet) Path() string
- func (m *MockWallet) Unlock(name, passphrase string) error
- type MockWalletMockRecorder
- func (mr *MockWalletMockRecorder) Close() *gomock.Call
- func (mr *MockWalletMockRecorder) Create(name, passphrase, pubKeyStr, privKeyStr interface{}) *gomock.Call
- func (mr *MockWalletMockRecorder) GenerateNewKey() *gomock.Call
- func (mr *MockWalletMockRecorder) GetUnlockedAccount(name interface{}) *gomock.Call
- func (mr *MockWalletMockRecorder) Info(name interface{}) *gomock.Call
- func (mr *MockWalletMockRecorder) IsExist(name interface{}) *gomock.Call
- func (mr *MockWalletMockRecorder) IsLocked(name interface{}) *gomock.Call
- func (mr *MockWalletMockRecorder) List() *gomock.Call
- func (mr *MockWalletMockRecorder) Load(name interface{}) *gomock.Call
- func (mr *MockWalletMockRecorder) Lock(name interface{}) *gomock.Call
- func (mr *MockWalletMockRecorder) Name() *gomock.Call
- func (mr *MockWalletMockRecorder) Path() *gomock.Call
- func (mr *MockWalletMockRecorder) Unlock(name, passphrase interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWallet ¶
type MockWallet struct {
// contains filtered or unexported fields
}
MockWallet is a mock of Wallet interface
func NewMockWallet ¶
func NewMockWallet(ctrl *gomock.Controller) *MockWallet
NewMockWallet creates a new mock instance
func (*MockWallet) Create ¶
func (m *MockWallet) Create(name, passphrase, pubKeyStr, privKeyStr string) error
Create mocks base method
func (*MockWallet) EXPECT ¶
func (m *MockWallet) EXPECT() *MockWalletMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockWallet) GenerateNewKey ¶
func (m *MockWallet) GenerateNewKey() (string, string, error)
GenerateNewKey mocks base method
func (*MockWallet) GetUnlockedAccount ¶
func (m *MockWallet) GetUnlockedAccount(name string) (*wallet.PrivAccount, bool)
GetUnlockedAccount mocks base method
func (*MockWallet) IsExist ¶
func (m *MockWallet) IsExist(name string) bool
IsExist mocks base method
func (*MockWallet) IsLocked ¶
func (m *MockWallet) IsLocked(name string) bool
IsLocked mocks base method
func (*MockWallet) Unlock ¶
func (m *MockWallet) Unlock(name, passphrase string) error
Unlock mocks base method
type MockWalletMockRecorder ¶
type MockWalletMockRecorder struct {
// contains filtered or unexported fields
}
MockWalletMockRecorder is the mock recorder for MockWallet
func (*MockWalletMockRecorder) Close ¶
func (mr *MockWalletMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockWalletMockRecorder) Create ¶
func (mr *MockWalletMockRecorder) Create(name, passphrase, pubKeyStr, privKeyStr interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockWalletMockRecorder) GenerateNewKey ¶
func (mr *MockWalletMockRecorder) GenerateNewKey() *gomock.Call
GenerateNewKey indicates an expected call of GenerateNewKey
func (*MockWalletMockRecorder) GetUnlockedAccount ¶
func (mr *MockWalletMockRecorder) GetUnlockedAccount(name interface{}) *gomock.Call
GetUnlockedAccount indicates an expected call of GetUnlockedAccount
func (*MockWalletMockRecorder) Info ¶
func (mr *MockWalletMockRecorder) Info(name interface{}) *gomock.Call
Info indicates an expected call of Info
func (*MockWalletMockRecorder) IsExist ¶
func (mr *MockWalletMockRecorder) IsExist(name interface{}) *gomock.Call
IsExist indicates an expected call of IsExist
func (*MockWalletMockRecorder) IsLocked ¶
func (mr *MockWalletMockRecorder) IsLocked(name interface{}) *gomock.Call
IsLocked indicates an expected call of IsLocked
func (*MockWalletMockRecorder) List ¶
func (mr *MockWalletMockRecorder) List() *gomock.Call
List indicates an expected call of List
func (*MockWalletMockRecorder) Load ¶
func (mr *MockWalletMockRecorder) Load(name interface{}) *gomock.Call
Load indicates an expected call of Load
func (*MockWalletMockRecorder) Lock ¶
func (mr *MockWalletMockRecorder) Lock(name interface{}) *gomock.Call
Lock indicates an expected call of Lock
func (*MockWalletMockRecorder) Name ¶
func (mr *MockWalletMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockWalletMockRecorder) Path ¶
func (mr *MockWalletMockRecorder) Path() *gomock.Call
Path indicates an expected call of Path
func (*MockWalletMockRecorder) Unlock ¶
func (mr *MockWalletMockRecorder) Unlock(name, passphrase interface{}) *gomock.Call
Unlock indicates an expected call of Unlock