Documentation
¶
Index ¶
- type SolanaJSONRPCClient
- type SolanaJSONRPCClient_Expecter
- type SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call
- func (_c *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call) Return(out *rpc.GetMultipleAccountsResult, err error) *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call
- func (_c *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call) Run(run func(ctx context.Context, accounts []solana.PublicKey, ...)) *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call
- func (_c *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call) RunAndReturn(...) *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SolanaJSONRPCClient ¶
SolanaJSONRPCClient is an autogenerated mock type for the SolanaJSONRPCClient type
func NewSolanaJSONRPCClient ¶
func NewSolanaJSONRPCClient(t interface { mock.TestingT Cleanup(func()) }) *SolanaJSONRPCClient
NewSolanaJSONRPCClient creates a new instance of SolanaJSONRPCClient. 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 (*SolanaJSONRPCClient) EXPECT ¶
func (_m *SolanaJSONRPCClient) EXPECT() *SolanaJSONRPCClient_Expecter
func (*SolanaJSONRPCClient) GetMultipleAccountsWithOpts ¶
func (_m *SolanaJSONRPCClient) GetMultipleAccountsWithOpts(ctx context.Context, accounts []solana.PublicKey, opts *rpc.GetMultipleAccountsOpts) (*rpc.GetMultipleAccountsResult, error)
GetMultipleAccountsWithOpts provides a mock function with given fields: ctx, accounts, opts
type SolanaJSONRPCClient_Expecter ¶
type SolanaJSONRPCClient_Expecter struct {
// contains filtered or unexported fields
}
func (*SolanaJSONRPCClient_Expecter) GetMultipleAccountsWithOpts ¶
func (_e *SolanaJSONRPCClient_Expecter) GetMultipleAccountsWithOpts(ctx interface{}, accounts interface{}, opts interface{}) *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call
GetMultipleAccountsWithOpts is a helper method to define mock.On call
- ctx context.Context
- accounts []solana.PublicKey
- opts *rpc.GetMultipleAccountsOpts
type SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call ¶
SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMultipleAccountsWithOpts'
func (*SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call) Run ¶
func (_c *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call) Run(run func(ctx context.Context, accounts []solana.PublicKey, opts *rpc.GetMultipleAccountsOpts)) *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call
func (*SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call) RunAndReturn ¶
func (_c *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call) RunAndReturn(run func(context.Context, []solana.PublicKey, *rpc.GetMultipleAccountsOpts) (*rpc.GetMultipleAccountsResult, error)) *SolanaJSONRPCClient_GetMultipleAccountsWithOpts_Call