package mocks
import "github.com/centrifuge/go-substrate-rpc-client/v4/client/mocks"
Index ¶
- type Client
- func NewClient(t NewClientT) *Client
- func (_m *Client) Call(result interface{}, method string, args ...interface{}) error
- func (_m *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *Client) Close()
- func (_m *Client) Subscribe(ctx context.Context, namespace string, subscribeMethodSuffix string, unsubscribeMethodSuffix string, notificationMethodSuffix string, channel interface{}, args ...interface{}) (*rpc.ClientSubscription, error)
- func (_m *Client) URL() string
- type NewClientT
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
func NewClient(t NewClientT) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) Call ¶
Call provides a mock function with given fields: result, method, args
func (*Client) CallContext ¶
func (_m *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
CallContext provides a mock function with given fields: ctx, result, method, args
func (*Client) Close ¶
func (_m *Client) Close()
Close provides a mock function with given fields:
func (*Client) Subscribe ¶
func (_m *Client) Subscribe(ctx context.Context, namespace string, subscribeMethodSuffix string, unsubscribeMethodSuffix string, notificationMethodSuffix string, channel interface{}, args ...interface{}) (*rpc.ClientSubscription, error)
Subscribe provides a mock function with given fields: ctx, namespace, subscribeMethodSuffix, unsubscribeMethodSuffix, notificationMethodSuffix, channel, args
func (*Client) URL ¶
URL provides a mock function with given fields:
type NewClientT ¶
Source Files ¶
- Version
- v4.2.1 (latest)
- Published
- Dec 5, 2023
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 weeks ago –
Tools for package owners.