mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Client) Close

func (_m *Client) Close() error

Close provides a mock function with no fields

func (*Client) EXPECT added in v1.4.0

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetNetworkInfo

func (_m *Client) GetNetworkInfo() (*btcjson.GetNetworkInfoResult, error)

GetNetworkInfo provides a mock function with no fields

func (*Client) MasternodeListJSON

func (_m *Client) MasternodeListJSON(filter string) (map[string]btcjson.MasternodelistResultJSON, error)

MasternodeListJSON provides a mock function with given fields: filter

func (*Client) MasternodeStatus

func (_m *Client) MasternodeStatus() (*btcjson.MasternodeStatusResult, error)

MasternodeStatus provides a mock function with no fields

func (*Client) Ping

func (_m *Client) Ping() error

Ping provides a mock function with no fields

func (*Client) QuorumInfo

func (_m *Client) QuorumInfo(quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash) (*btcjson.QuorumInfoResult, error)

QuorumInfo provides a mock function with given fields: quorumType, quorumHash

func (*Client) QuorumSign

func (_m *Client) QuorumSign(quorumType btcjson.LLMQType, requestID bytes.HexBytes, messageHash bytes.HexBytes, quorumHash bytes.HexBytes) (*btcjson.QuorumSignResult, error)

QuorumSign provides a mock function with given fields: quorumType, requestID, messageHash, quorumHash

func (*Client) QuorumVerify

func (_m *Client) QuorumVerify(quorumType btcjson.LLMQType, requestID bytes.HexBytes, messageHash bytes.HexBytes, signature bytes.HexBytes, quorumHash bytes.HexBytes) (bool, error)

QuorumVerify provides a mock function with given fields: quorumType, requestID, messageHash, signature, quorumHash

type Client_Close_Call added in v1.4.0

type Client_Close_Call struct {
	*mock.Call
}

Client_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*Client_Close_Call) Return added in v1.4.0

func (_c *Client_Close_Call) Return(_a0 error) *Client_Close_Call

func (*Client_Close_Call) Run added in v1.4.0

func (_c *Client_Close_Call) Run(run func()) *Client_Close_Call

func (*Client_Close_Call) RunAndReturn added in v1.4.0

func (_c *Client_Close_Call) RunAndReturn(run func() error) *Client_Close_Call

type Client_Expecter added in v1.4.0

type Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*Client_Expecter) Close added in v1.4.0

func (_e *Client_Expecter) Close() *Client_Close_Call

Close is a helper method to define mock.On call

func (*Client_Expecter) GetNetworkInfo added in v1.4.0

func (_e *Client_Expecter) GetNetworkInfo() *Client_GetNetworkInfo_Call

GetNetworkInfo is a helper method to define mock.On call

func (*Client_Expecter) MasternodeListJSON added in v1.4.0

func (_e *Client_Expecter) MasternodeListJSON(filter interface{}) *Client_MasternodeListJSON_Call

MasternodeListJSON is a helper method to define mock.On call

  • filter string

func (*Client_Expecter) MasternodeStatus added in v1.4.0

func (_e *Client_Expecter) MasternodeStatus() *Client_MasternodeStatus_Call

MasternodeStatus is a helper method to define mock.On call

func (*Client_Expecter) Ping added in v1.4.0

func (_e *Client_Expecter) Ping() *Client_Ping_Call

Ping is a helper method to define mock.On call

func (*Client_Expecter) QuorumInfo added in v1.4.0

func (_e *Client_Expecter) QuorumInfo(quorumType interface{}, quorumHash interface{}) *Client_QuorumInfo_Call

QuorumInfo is a helper method to define mock.On call

  • quorumType btcjson.LLMQType
  • quorumHash crypto.QuorumHash

func (*Client_Expecter) QuorumSign added in v1.4.0

func (_e *Client_Expecter) QuorumSign(quorumType interface{}, requestID interface{}, messageHash interface{}, quorumHash interface{}) *Client_QuorumSign_Call

QuorumSign is a helper method to define mock.On call

  • quorumType btcjson.LLMQType
  • requestID bytes.HexBytes
  • messageHash bytes.HexBytes
  • quorumHash bytes.HexBytes

func (*Client_Expecter) QuorumVerify added in v1.4.0

func (_e *Client_Expecter) QuorumVerify(quorumType interface{}, requestID interface{}, messageHash interface{}, signature interface{}, quorumHash interface{}) *Client_QuorumVerify_Call

QuorumVerify is a helper method to define mock.On call

  • quorumType btcjson.LLMQType
  • requestID bytes.HexBytes
  • messageHash bytes.HexBytes
  • signature bytes.HexBytes
  • quorumHash bytes.HexBytes

type Client_GetNetworkInfo_Call added in v1.4.0

type Client_GetNetworkInfo_Call struct {
	*mock.Call
}

Client_GetNetworkInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNetworkInfo'

func (*Client_GetNetworkInfo_Call) Return added in v1.4.0

func (*Client_GetNetworkInfo_Call) Run added in v1.4.0

func (*Client_GetNetworkInfo_Call) RunAndReturn added in v1.4.0

type Client_MasternodeListJSON_Call added in v1.4.0

type Client_MasternodeListJSON_Call struct {
	*mock.Call
}

Client_MasternodeListJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MasternodeListJSON'

func (*Client_MasternodeListJSON_Call) Return added in v1.4.0

func (*Client_MasternodeListJSON_Call) Run added in v1.4.0

func (*Client_MasternodeListJSON_Call) RunAndReturn added in v1.4.0

type Client_MasternodeStatus_Call added in v1.4.0

type Client_MasternodeStatus_Call struct {
	*mock.Call
}

Client_MasternodeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MasternodeStatus'

func (*Client_MasternodeStatus_Call) Return added in v1.4.0

func (*Client_MasternodeStatus_Call) Run added in v1.4.0

func (*Client_MasternodeStatus_Call) RunAndReturn added in v1.4.0

type Client_Ping_Call added in v1.4.0

type Client_Ping_Call struct {
	*mock.Call
}

Client_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'

func (*Client_Ping_Call) Return added in v1.4.0

func (_c *Client_Ping_Call) Return(_a0 error) *Client_Ping_Call

func (*Client_Ping_Call) Run added in v1.4.0

func (_c *Client_Ping_Call) Run(run func()) *Client_Ping_Call

func (*Client_Ping_Call) RunAndReturn added in v1.4.0

func (_c *Client_Ping_Call) RunAndReturn(run func() error) *Client_Ping_Call

type Client_QuorumInfo_Call added in v1.4.0

type Client_QuorumInfo_Call struct {
	*mock.Call
}

Client_QuorumInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumInfo'

func (*Client_QuorumInfo_Call) Return added in v1.4.0

func (*Client_QuorumInfo_Call) Run added in v1.4.0

func (_c *Client_QuorumInfo_Call) Run(run func(quorumType btcjson.LLMQType, quorumHash crypto.QuorumHash)) *Client_QuorumInfo_Call

func (*Client_QuorumInfo_Call) RunAndReturn added in v1.4.0

type Client_QuorumSign_Call added in v1.4.0

type Client_QuorumSign_Call struct {
	*mock.Call
}

Client_QuorumSign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumSign'

func (*Client_QuorumSign_Call) Return added in v1.4.0

func (*Client_QuorumSign_Call) Run added in v1.4.0

func (_c *Client_QuorumSign_Call) Run(run func(quorumType btcjson.LLMQType, requestID bytes.HexBytes, messageHash bytes.HexBytes, quorumHash bytes.HexBytes)) *Client_QuorumSign_Call

func (*Client_QuorumSign_Call) RunAndReturn added in v1.4.0

type Client_QuorumVerify_Call added in v1.4.0

type Client_QuorumVerify_Call struct {
	*mock.Call
}

Client_QuorumVerify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumVerify'

func (*Client_QuorumVerify_Call) Return added in v1.4.0

func (*Client_QuorumVerify_Call) Run added in v1.4.0

func (_c *Client_QuorumVerify_Call) Run(run func(quorumType btcjson.LLMQType, requestID bytes.HexBytes, messageHash bytes.HexBytes, signature bytes.HexBytes, quorumHash bytes.HexBytes)) *Client_QuorumVerify_Call

func (*Client_QuorumVerify_Call) RunAndReturn added in v1.4.0

Jump to

Keyboard shortcuts

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