mocks

package
v0.131.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChecker

type MockChecker struct {
	mock.Mock
}

MockChecker is an autogenerated mock type for the Checker type

func NewMockChecker

func NewMockChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockChecker

NewMockChecker creates a new instance of MockChecker. 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 (*MockChecker) Address

func (_mock *MockChecker) Address(blockChain chain.BlockChain) (string, error)

Address provides a mock function for the type MockChecker

func (*MockChecker) Balance

func (_mock *MockChecker) Balance(context1 context.Context, blockChain chain.BlockChain) (*big.Int, error)

Balance provides a mock function for the type MockChecker

func (*MockChecker) Decimals

func (_mock *MockChecker) Decimals(blockChain chain.BlockChain) uint8

Decimals provides a mock function for the type MockChecker

func (*MockChecker) EXPECT

func (_m *MockChecker) EXPECT() *MockChecker_Expecter

func (*MockChecker) EstimateThreshold

func (_mock *MockChecker) EstimateThreshold(context1 context.Context, blockChain chain.BlockChain, intParam *big.Int) (*big.Int, error)

EstimateThreshold provides a mock function for the type MockChecker

func (*MockChecker) Family

func (_mock *MockChecker) Family() string

Family provides a mock function for the type MockChecker

type MockChecker_Address_Call

type MockChecker_Address_Call struct {
	*mock.Call
}

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

func (*MockChecker_Address_Call) Return

func (*MockChecker_Address_Call) Run

func (_c *MockChecker_Address_Call) Run(run func(blockChain chain.BlockChain)) *MockChecker_Address_Call

func (*MockChecker_Address_Call) RunAndReturn

func (_c *MockChecker_Address_Call) RunAndReturn(run func(blockChain chain.BlockChain) (string, error)) *MockChecker_Address_Call

type MockChecker_Balance_Call

type MockChecker_Balance_Call struct {
	*mock.Call
}

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

func (*MockChecker_Balance_Call) Return

func (_c *MockChecker_Balance_Call) Return(intParam *big.Int, err error) *MockChecker_Balance_Call

func (*MockChecker_Balance_Call) Run

func (_c *MockChecker_Balance_Call) Run(run func(context1 context.Context, blockChain chain.BlockChain)) *MockChecker_Balance_Call

func (*MockChecker_Balance_Call) RunAndReturn

func (_c *MockChecker_Balance_Call) RunAndReturn(run func(context1 context.Context, blockChain chain.BlockChain) (*big.Int, error)) *MockChecker_Balance_Call

type MockChecker_Decimals_Call

type MockChecker_Decimals_Call struct {
	*mock.Call
}

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

func (*MockChecker_Decimals_Call) Return

func (*MockChecker_Decimals_Call) Run

func (*MockChecker_Decimals_Call) RunAndReturn

func (_c *MockChecker_Decimals_Call) RunAndReturn(run func(blockChain chain.BlockChain) uint8) *MockChecker_Decimals_Call

type MockChecker_EstimateThreshold_Call

type MockChecker_EstimateThreshold_Call struct {
	*mock.Call
}

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

func (*MockChecker_EstimateThreshold_Call) Return

func (*MockChecker_EstimateThreshold_Call) Run

func (*MockChecker_EstimateThreshold_Call) RunAndReturn

func (_c *MockChecker_EstimateThreshold_Call) RunAndReturn(run func(context1 context.Context, blockChain chain.BlockChain, intParam *big.Int) (*big.Int, error)) *MockChecker_EstimateThreshold_Call

type MockChecker_Expecter

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

func (*MockChecker_Expecter) Address

func (_e *MockChecker_Expecter) Address(blockChain any) *MockChecker_Address_Call

Address is a helper method to define mock.On call

  • blockChain chain.BlockChain

func (*MockChecker_Expecter) Balance

func (_e *MockChecker_Expecter) Balance(context1 any, blockChain any) *MockChecker_Balance_Call

Balance is a helper method to define mock.On call

  • context1 context.Context
  • blockChain chain.BlockChain

func (*MockChecker_Expecter) Decimals

func (_e *MockChecker_Expecter) Decimals(blockChain any) *MockChecker_Decimals_Call

Decimals is a helper method to define mock.On call

  • blockChain chain.BlockChain

func (*MockChecker_Expecter) EstimateThreshold

func (_e *MockChecker_Expecter) EstimateThreshold(context1 any, blockChain any, intParam any) *MockChecker_EstimateThreshold_Call

EstimateThreshold is a helper method to define mock.On call

  • context1 context.Context
  • blockChain chain.BlockChain
  • intParam *big.Int

func (*MockChecker_Expecter) Family

Family is a helper method to define mock.On call

type MockChecker_Family_Call

type MockChecker_Family_Call struct {
	*mock.Call
}

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

func (*MockChecker_Family_Call) Return

func (*MockChecker_Family_Call) Run

func (_c *MockChecker_Family_Call) Run(run func()) *MockChecker_Family_Call

func (*MockChecker_Family_Call) RunAndReturn

func (_c *MockChecker_Family_Call) RunAndReturn(run func() string) *MockChecker_Family_Call

Jump to

Keyboard shortcuts

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