mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0, 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 Signer

type Signer struct {
	mock.Mock
}

Signer is an autogenerated mock type for the Signer type

func NewSigner

func NewSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Signer

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

func (_m *Signer) Initialize(_a0 context.Context) error

Initialize provides a mock function with given fields: _a0

func (*Signer) PublicAddress

func (_m *Signer) PublicAddress() common.Address

PublicAddress provides a mock function with no fields

func (*Signer) SignHash

func (_m *Signer) SignHash(_a0 context.Context, _a1 common.Hash) ([]byte, error)

SignHash provides a mock function with given fields: _a0, _a1

func (*Signer) String

func (_m *Signer) String() string

String 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

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

func (*Signer_Initialize_Call) RunAndReturn

func (_c *Signer_Initialize_Call) RunAndReturn(run func(context.Context) error) *Signer_Initialize_Call

type Signer_PublicAddress_Call

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

func (*Signer_PublicAddress_Call) RunAndReturn

func (_c *Signer_PublicAddress_Call) RunAndReturn(run func() common.Address) *Signer_PublicAddress_Call

type Signer_SignHash_Call

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

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

type Web3SignerClienter struct {
	mock.Mock
}

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 (*Web3SignerClienter) EthAccounts

func (_m *Web3SignerClienter) EthAccounts(ctx context.Context) ([]common.Address, error)

EthAccounts provides a mock function with given fields: ctx

func (*Web3SignerClienter) SignHash

func (_m *Web3SignerClienter) SignHash(ctx context.Context, address common.Address, hashToSign common.Hash) ([]byte, error)

SignHash provides a mock function with given fields: ctx, address, hashToSign

type Web3SignerClienter_EthAccounts_Call

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

func (*Web3SignerClienter_EthAccounts_Call) RunAndReturn

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

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

func (*Web3SignerClienter_SignHash_Call) RunAndReturn

Jump to

Keyboard shortcuts

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