mocks

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBalanceMonitorRPCClient

type MockBalanceMonitorRPCClient struct {
	mock.Mock
}

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 (*MockBalanceMonitorRPCClient) GetLedgerEntries

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

type MockBalanceMonitorRPCClient_GetLedgerEntries_Call struct {
	*mock.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

type MockKeystore

type MockKeystore struct {
	mock.Mock
}

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

func (*MockKeystore) Sign

func (_m *MockKeystore) Sign(ctx context.Context, account string, data []byte) ([]byte, error)

Sign provides a mock function with given fields: ctx, account, data

type MockKeystore_Accounts_Call

type MockKeystore_Accounts_Call struct {
	*mock.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 (*MockKeystore_Accounts_Call) Run

func (*MockKeystore_Accounts_Call) RunAndReturn

type MockKeystore_Decrypt_Call

type MockKeystore_Decrypt_Call struct {
	*mock.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

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

type MockKeystore_Sign_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

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