Documentation
¶
Index ¶
- type Signer
- type Signer_Expecter
- type Signer_Initialize_Call
- type Signer_PublicAddress_Call
- type Signer_SignHash_Call
- func (_c *Signer_SignHash_Call) Return(_a0 []byte, _a1 error) *Signer_SignHash_Call
- func (_c *Signer_SignHash_Call) Run(run func(_a0 context.Context, _a1 common.Hash)) *Signer_SignHash_Call
- func (_c *Signer_SignHash_Call) RunAndReturn(run func(context.Context, common.Hash) ([]byte, error)) *Signer_SignHash_Call
- type Signer_String_Call
- type Web3SignerClienter
- type Web3SignerClienter_EthAccounts_Call
- func (_c *Web3SignerClienter_EthAccounts_Call) Return(_a0 []common.Address, _a1 error) *Web3SignerClienter_EthAccounts_Call
- func (_c *Web3SignerClienter_EthAccounts_Call) Run(run func(ctx context.Context)) *Web3SignerClienter_EthAccounts_Call
- func (_c *Web3SignerClienter_EthAccounts_Call) RunAndReturn(run func(context.Context) ([]common.Address, error)) *Web3SignerClienter_EthAccounts_Call
- type Web3SignerClienter_Expecter
- type Web3SignerClienter_SignHash_Call
- func (_c *Web3SignerClienter_SignHash_Call) Return(_a0 []byte, _a1 error) *Web3SignerClienter_SignHash_Call
- func (_c *Web3SignerClienter_SignHash_Call) Run(run func(ctx context.Context, address common.Address, hashToSign common.Hash)) *Web3SignerClienter_SignHash_Call
- func (_c *Web3SignerClienter_SignHash_Call) RunAndReturn(run func(context.Context, common.Address, common.Hash) ([]byte, error)) *Web3SignerClienter_SignHash_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
Signer is an autogenerated mock type for the Signer type
func NewSigner ¶
NewSigner creates a new instance of Signer. 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 (*Signer) EXPECT ¶
func (_m *Signer) EXPECT() *Signer_Expecter
func (*Signer) Initialize ¶
Initialize provides a mock function with given fields: _a0
func (*Signer) PublicAddress ¶
PublicAddress provides a mock function with no fields
type Signer_Expecter ¶
type Signer_Expecter struct {
// contains filtered or unexported fields
}
func (*Signer_Expecter) Initialize ¶
func (_e *Signer_Expecter) Initialize(_a0 interface{}) *Signer_Initialize_Call
Initialize is a helper method to define mock.On call
- _a0 context.Context
func (*Signer_Expecter) PublicAddress ¶
func (_e *Signer_Expecter) PublicAddress() *Signer_PublicAddress_Call
PublicAddress is a helper method to define mock.On call
func (*Signer_Expecter) SignHash ¶
func (_e *Signer_Expecter) SignHash(_a0 interface{}, _a1 interface{}) *Signer_SignHash_Call
SignHash is a helper method to define mock.On call
- _a0 context.Context
- _a1 common.Hash
func (*Signer_Expecter) String ¶
func (_e *Signer_Expecter) String() *Signer_String_Call
String is a helper method to define mock.On call
type Signer_Initialize_Call ¶
Signer_Initialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialize'
func (*Signer_Initialize_Call) Return ¶
func (_c *Signer_Initialize_Call) Return(_a0 error) *Signer_Initialize_Call
func (*Signer_Initialize_Call) Run ¶
func (_c *Signer_Initialize_Call) Run(run func(_a0 context.Context)) *Signer_Initialize_Call
func (*Signer_Initialize_Call) RunAndReturn ¶
func (_c *Signer_Initialize_Call) RunAndReturn(run func(context.Context) error) *Signer_Initialize_Call
type Signer_PublicAddress_Call ¶
Signer_PublicAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublicAddress'
func (*Signer_PublicAddress_Call) Return ¶
func (_c *Signer_PublicAddress_Call) Return(_a0 common.Address) *Signer_PublicAddress_Call
func (*Signer_PublicAddress_Call) Run ¶
func (_c *Signer_PublicAddress_Call) Run(run func()) *Signer_PublicAddress_Call
func (*Signer_PublicAddress_Call) RunAndReturn ¶
func (_c *Signer_PublicAddress_Call) RunAndReturn(run func() common.Address) *Signer_PublicAddress_Call
type Signer_SignHash_Call ¶
Signer_SignHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignHash'
func (*Signer_SignHash_Call) Return ¶
func (_c *Signer_SignHash_Call) Return(_a0 []byte, _a1 error) *Signer_SignHash_Call
func (*Signer_SignHash_Call) Run ¶
func (_c *Signer_SignHash_Call) Run(run func(_a0 context.Context, _a1 common.Hash)) *Signer_SignHash_Call
func (*Signer_SignHash_Call) RunAndReturn ¶
func (_c *Signer_SignHash_Call) RunAndReturn(run func(context.Context, common.Hash) ([]byte, error)) *Signer_SignHash_Call
type Signer_String_Call ¶
Signer_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*Signer_String_Call) Return ¶
func (_c *Signer_String_Call) Return(_a0 string) *Signer_String_Call
func (*Signer_String_Call) Run ¶
func (_c *Signer_String_Call) Run(run func()) *Signer_String_Call
func (*Signer_String_Call) RunAndReturn ¶
func (_c *Signer_String_Call) RunAndReturn(run func() string) *Signer_String_Call
type Web3SignerClienter ¶
Web3SignerClienter is an autogenerated mock type for the Web3SignerClienter type
func NewWeb3SignerClienter ¶
func NewWeb3SignerClienter(t interface {
mock.TestingT
Cleanup(func())
}) *Web3SignerClienter
NewWeb3SignerClienter creates a new instance of Web3SignerClienter. 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 (*Web3SignerClienter) EXPECT ¶
func (_m *Web3SignerClienter) EXPECT() *Web3SignerClienter_Expecter
func (*Web3SignerClienter) EthAccounts ¶
EthAccounts provides a mock function with given fields: ctx
type Web3SignerClienter_EthAccounts_Call ¶
Web3SignerClienter_EthAccounts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EthAccounts'
func (*Web3SignerClienter_EthAccounts_Call) Return ¶
func (_c *Web3SignerClienter_EthAccounts_Call) Return(_a0 []common.Address, _a1 error) *Web3SignerClienter_EthAccounts_Call
func (*Web3SignerClienter_EthAccounts_Call) Run ¶
func (_c *Web3SignerClienter_EthAccounts_Call) Run(run func(ctx context.Context)) *Web3SignerClienter_EthAccounts_Call
func (*Web3SignerClienter_EthAccounts_Call) RunAndReturn ¶
func (_c *Web3SignerClienter_EthAccounts_Call) RunAndReturn(run func(context.Context) ([]common.Address, error)) *Web3SignerClienter_EthAccounts_Call
type Web3SignerClienter_Expecter ¶
type Web3SignerClienter_Expecter struct {
// contains filtered or unexported fields
}
func (*Web3SignerClienter_Expecter) EthAccounts ¶
func (_e *Web3SignerClienter_Expecter) EthAccounts(ctx interface{}) *Web3SignerClienter_EthAccounts_Call
EthAccounts is a helper method to define mock.On call
- ctx context.Context
func (*Web3SignerClienter_Expecter) SignHash ¶
func (_e *Web3SignerClienter_Expecter) SignHash(ctx interface{}, address interface{}, hashToSign interface{}) *Web3SignerClienter_SignHash_Call
SignHash is a helper method to define mock.On call
- ctx context.Context
- address common.Address
- hashToSign common.Hash
type Web3SignerClienter_SignHash_Call ¶
Web3SignerClienter_SignHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignHash'
func (*Web3SignerClienter_SignHash_Call) Return ¶
func (_c *Web3SignerClienter_SignHash_Call) Return(_a0 []byte, _a1 error) *Web3SignerClienter_SignHash_Call
func (*Web3SignerClienter_SignHash_Call) Run ¶
func (_c *Web3SignerClienter_SignHash_Call) Run(run func(ctx context.Context, address common.Address, hashToSign common.Hash)) *Web3SignerClienter_SignHash_Call
func (*Web3SignerClienter_SignHash_Call) RunAndReturn ¶
func (_c *Web3SignerClienter_SignHash_Call) RunAndReturn(run func(context.Context, common.Address, common.Hash) ([]byte, error)) *Web3SignerClienter_SignHash_Call