Documentation
¶
Index ¶
- type MockBalanceMonitorRPCClient
- type MockBalanceMonitorRPCClient_Expecter
- type MockBalanceMonitorRPCClient_GetLedgerEntries_Call
- func (_c *MockBalanceMonitorRPCClient_GetLedgerEntries_Call) Return(_a0 protocol.GetLedgerEntriesResponse, _a1 error) *MockBalanceMonitorRPCClient_GetLedgerEntries_Call
- func (_c *MockBalanceMonitorRPCClient_GetLedgerEntries_Call) Run(run func(ctx context.Context, req protocol.GetLedgerEntriesRequest)) *MockBalanceMonitorRPCClient_GetLedgerEntries_Call
- func (_c *MockBalanceMonitorRPCClient_GetLedgerEntries_Call) RunAndReturn(...) *MockBalanceMonitorRPCClient_GetLedgerEntries_Call
- type MockKeystore
- func (_m *MockKeystore) Accounts(ctx context.Context) ([]string, error)
- func (_m *MockKeystore) Decrypt(ctx context.Context, account string, encrypted []byte) ([]byte, error)
- func (_m *MockKeystore) EXPECT() *MockKeystore_Expecter
- func (_m *MockKeystore) Sign(ctx context.Context, account string, data []byte) ([]byte, error)
- type MockKeystore_Accounts_Call
- func (_c *MockKeystore_Accounts_Call) Return(accounts []string, err error) *MockKeystore_Accounts_Call
- func (_c *MockKeystore_Accounts_Call) Run(run func(ctx context.Context)) *MockKeystore_Accounts_Call
- func (_c *MockKeystore_Accounts_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockKeystore_Accounts_Call
- type MockKeystore_Decrypt_Call
- func (_c *MockKeystore_Decrypt_Call) Return(decrypted []byte, err error) *MockKeystore_Decrypt_Call
- func (_c *MockKeystore_Decrypt_Call) Run(run func(ctx context.Context, account string, encrypted []byte)) *MockKeystore_Decrypt_Call
- func (_c *MockKeystore_Decrypt_Call) RunAndReturn(run func(context.Context, string, []byte) ([]byte, error)) *MockKeystore_Decrypt_Call
- type MockKeystore_Expecter
- func (_e *MockKeystore_Expecter) Accounts(ctx interface{}) *MockKeystore_Accounts_Call
- func (_e *MockKeystore_Expecter) Decrypt(ctx interface{}, account interface{}, encrypted interface{}) *MockKeystore_Decrypt_Call
- func (_e *MockKeystore_Expecter) Sign(ctx interface{}, account interface{}, data interface{}) *MockKeystore_Sign_Call
- type MockKeystore_Sign_Call
- func (_c *MockKeystore_Sign_Call) Return(signed []byte, err error) *MockKeystore_Sign_Call
- func (_c *MockKeystore_Sign_Call) Run(run func(ctx context.Context, account string, data []byte)) *MockKeystore_Sign_Call
- func (_c *MockKeystore_Sign_Call) RunAndReturn(run func(context.Context, string, []byte) ([]byte, error)) *MockKeystore_Sign_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBalanceMonitorRPCClient ¶
MockBalanceMonitorRPCClient is an autogenerated mock type for the BalanceMonitorRPCClient type
func NewMockBalanceMonitorRPCClient ¶
func NewMockBalanceMonitorRPCClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockBalanceMonitorRPCClient
NewMockBalanceMonitorRPCClient creates a new instance of MockBalanceMonitorRPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockBalanceMonitorRPCClient) EXPECT ¶
func (_m *MockBalanceMonitorRPCClient) EXPECT() *MockBalanceMonitorRPCClient_Expecter
func (*MockBalanceMonitorRPCClient) GetLedgerEntries ¶
func (_m *MockBalanceMonitorRPCClient) GetLedgerEntries(ctx context.Context, req protocol.GetLedgerEntriesRequest) (protocol.GetLedgerEntriesResponse, error)
GetLedgerEntries provides a mock function with given fields: ctx, req
type MockBalanceMonitorRPCClient_Expecter ¶
type MockBalanceMonitorRPCClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBalanceMonitorRPCClient_Expecter) GetLedgerEntries ¶
func (_e *MockBalanceMonitorRPCClient_Expecter) GetLedgerEntries(ctx interface{}, req interface{}) *MockBalanceMonitorRPCClient_GetLedgerEntries_Call
GetLedgerEntries is a helper method to define mock.On call
- ctx context.Context
- req protocol.GetLedgerEntriesRequest
type MockBalanceMonitorRPCClient_GetLedgerEntries_Call ¶
MockBalanceMonitorRPCClient_GetLedgerEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLedgerEntries'
func (*MockBalanceMonitorRPCClient_GetLedgerEntries_Call) Run ¶
func (_c *MockBalanceMonitorRPCClient_GetLedgerEntries_Call) Run(run func(ctx context.Context, req protocol.GetLedgerEntriesRequest)) *MockBalanceMonitorRPCClient_GetLedgerEntries_Call
func (*MockBalanceMonitorRPCClient_GetLedgerEntries_Call) RunAndReturn ¶
func (_c *MockBalanceMonitorRPCClient_GetLedgerEntries_Call) RunAndReturn(run func(context.Context, protocol.GetLedgerEntriesRequest) (protocol.GetLedgerEntriesResponse, error)) *MockBalanceMonitorRPCClient_GetLedgerEntries_Call
type MockKeystore ¶
MockKeystore is an autogenerated mock type for the Keystore type
func NewMockKeystore ¶
func NewMockKeystore(t interface {
mock.TestingT
Cleanup(func())
}) *MockKeystore
NewMockKeystore creates a new instance of MockKeystore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockKeystore) Accounts ¶
func (_m *MockKeystore) Accounts(ctx context.Context) ([]string, error)
Accounts provides a mock function with given fields: ctx
func (*MockKeystore) Decrypt ¶
func (_m *MockKeystore) Decrypt(ctx context.Context, account string, encrypted []byte) ([]byte, error)
Decrypt provides a mock function with given fields: ctx, account, encrypted
func (*MockKeystore) EXPECT ¶
func (_m *MockKeystore) EXPECT() *MockKeystore_Expecter
type MockKeystore_Accounts_Call ¶
MockKeystore_Accounts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Accounts'
func (*MockKeystore_Accounts_Call) Return ¶
func (_c *MockKeystore_Accounts_Call) Return(accounts []string, err error) *MockKeystore_Accounts_Call
func (*MockKeystore_Accounts_Call) Run ¶
func (_c *MockKeystore_Accounts_Call) Run(run func(ctx context.Context)) *MockKeystore_Accounts_Call
func (*MockKeystore_Accounts_Call) RunAndReturn ¶
func (_c *MockKeystore_Accounts_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockKeystore_Accounts_Call
type MockKeystore_Decrypt_Call ¶
MockKeystore_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'
func (*MockKeystore_Decrypt_Call) Return ¶
func (_c *MockKeystore_Decrypt_Call) Return(decrypted []byte, err error) *MockKeystore_Decrypt_Call
func (*MockKeystore_Decrypt_Call) Run ¶
func (_c *MockKeystore_Decrypt_Call) Run(run func(ctx context.Context, account string, encrypted []byte)) *MockKeystore_Decrypt_Call
func (*MockKeystore_Decrypt_Call) RunAndReturn ¶
func (_c *MockKeystore_Decrypt_Call) RunAndReturn(run func(context.Context, string, []byte) ([]byte, error)) *MockKeystore_Decrypt_Call
type MockKeystore_Expecter ¶
type MockKeystore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockKeystore_Expecter) Accounts ¶
func (_e *MockKeystore_Expecter) Accounts(ctx interface{}) *MockKeystore_Accounts_Call
Accounts is a helper method to define mock.On call
- ctx context.Context
func (*MockKeystore_Expecter) Decrypt ¶
func (_e *MockKeystore_Expecter) Decrypt(ctx interface{}, account interface{}, encrypted interface{}) *MockKeystore_Decrypt_Call
Decrypt is a helper method to define mock.On call
- ctx context.Context
- account string
- encrypted []byte
func (*MockKeystore_Expecter) Sign ¶
func (_e *MockKeystore_Expecter) Sign(ctx interface{}, account interface{}, data interface{}) *MockKeystore_Sign_Call
Sign is a helper method to define mock.On call
- ctx context.Context
- account string
- data []byte
type MockKeystore_Sign_Call ¶
MockKeystore_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'
func (*MockKeystore_Sign_Call) Return ¶
func (_c *MockKeystore_Sign_Call) Return(signed []byte, err error) *MockKeystore_Sign_Call
func (*MockKeystore_Sign_Call) Run ¶
func (_c *MockKeystore_Sign_Call) Run(run func(ctx context.Context, account string, data []byte)) *MockKeystore_Sign_Call
func (*MockKeystore_Sign_Call) RunAndReturn ¶
func (_c *MockKeystore_Sign_Call) RunAndReturn(run func(context.Context, string, []byte) ([]byte, error)) *MockKeystore_Sign_Call