Documentation
¶
Index ¶
- type MockNonceManager
- func (_m *MockNonceManager) EXPECT() *MockNonceManager_Expecter
- func (_m *MockNonceManager) FastForwardNonce(ctx context.Context, nonce big.Int) error
- func (_m *MockNonceManager) GetNonce(ctx context.Context) (*noncemanager.NonceContext, error)
- func (_m *MockNonceManager) Replenish(ctx context.Context, nonce big.Int) error
- type MockNonceManager_Expecter
- func (_e *MockNonceManager_Expecter) FastForwardNonce(ctx interface{}, nonce interface{}) *MockNonceManager_FastForwardNonce_Call
- func (_e *MockNonceManager_Expecter) GetNonce(ctx interface{}) *MockNonceManager_GetNonce_Call
- func (_e *MockNonceManager_Expecter) Replenish(ctx interface{}, nonce interface{}) *MockNonceManager_Replenish_Call
- type MockNonceManager_FastForwardNonce_Call
- func (_c *MockNonceManager_FastForwardNonce_Call) Return(_a0 error) *MockNonceManager_FastForwardNonce_Call
- func (_c *MockNonceManager_FastForwardNonce_Call) Run(run func(ctx context.Context, nonce big.Int)) *MockNonceManager_FastForwardNonce_Call
- func (_c *MockNonceManager_FastForwardNonce_Call) RunAndReturn(run func(context.Context, big.Int) error) *MockNonceManager_FastForwardNonce_Call
- type MockNonceManager_GetNonce_Call
- func (_c *MockNonceManager_GetNonce_Call) Return(_a0 *noncemanager.NonceContext, _a1 error) *MockNonceManager_GetNonce_Call
- func (_c *MockNonceManager_GetNonce_Call) Run(run func(ctx context.Context)) *MockNonceManager_GetNonce_Call
- func (_c *MockNonceManager_GetNonce_Call) RunAndReturn(run func(context.Context) (*noncemanager.NonceContext, error)) *MockNonceManager_GetNonce_Call
- type MockNonceManager_Replenish_Call
- func (_c *MockNonceManager_Replenish_Call) Return(_a0 error) *MockNonceManager_Replenish_Call
- func (_c *MockNonceManager_Replenish_Call) Run(run func(ctx context.Context, nonce big.Int)) *MockNonceManager_Replenish_Call
- func (_c *MockNonceManager_Replenish_Call) RunAndReturn(run func(context.Context, big.Int) error) *MockNonceManager_Replenish_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNonceManager ¶
MockNonceManager is an autogenerated mock type for the NonceManager type
func NewMockNonceManager ¶
func NewMockNonceManager(t interface {
mock.TestingT
Cleanup(func())
}) *MockNonceManager
NewMockNonceManager creates a new instance of MockNonceManager. 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 (*MockNonceManager) EXPECT ¶
func (_m *MockNonceManager) EXPECT() *MockNonceManager_Expecter
func (*MockNonceManager) FastForwardNonce ¶
FastForwardNonce provides a mock function with given fields: ctx, nonce
func (*MockNonceManager) GetNonce ¶
func (_m *MockNonceManager) GetNonce(ctx context.Context) (*noncemanager.NonceContext, error)
GetNonce provides a mock function with given fields: ctx
type MockNonceManager_Expecter ¶
type MockNonceManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockNonceManager_Expecter) FastForwardNonce ¶
func (_e *MockNonceManager_Expecter) FastForwardNonce(ctx interface{}, nonce interface{}) *MockNonceManager_FastForwardNonce_Call
FastForwardNonce is a helper method to define mock.On call
- ctx context.Context
- nonce big.Int
func (*MockNonceManager_Expecter) GetNonce ¶
func (_e *MockNonceManager_Expecter) GetNonce(ctx interface{}) *MockNonceManager_GetNonce_Call
GetNonce is a helper method to define mock.On call
- ctx context.Context
func (*MockNonceManager_Expecter) Replenish ¶
func (_e *MockNonceManager_Expecter) Replenish(ctx interface{}, nonce interface{}) *MockNonceManager_Replenish_Call
Replenish is a helper method to define mock.On call
- ctx context.Context
- nonce big.Int
type MockNonceManager_FastForwardNonce_Call ¶
MockNonceManager_FastForwardNonce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FastForwardNonce'
func (*MockNonceManager_FastForwardNonce_Call) Return ¶
func (_c *MockNonceManager_FastForwardNonce_Call) Return(_a0 error) *MockNonceManager_FastForwardNonce_Call
func (*MockNonceManager_FastForwardNonce_Call) Run ¶
func (_c *MockNonceManager_FastForwardNonce_Call) Run(run func(ctx context.Context, nonce big.Int)) *MockNonceManager_FastForwardNonce_Call
func (*MockNonceManager_FastForwardNonce_Call) RunAndReturn ¶
func (_c *MockNonceManager_FastForwardNonce_Call) RunAndReturn(run func(context.Context, big.Int) error) *MockNonceManager_FastForwardNonce_Call
type MockNonceManager_GetNonce_Call ¶
MockNonceManager_GetNonce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNonce'
func (*MockNonceManager_GetNonce_Call) Return ¶
func (_c *MockNonceManager_GetNonce_Call) Return(_a0 *noncemanager.NonceContext, _a1 error) *MockNonceManager_GetNonce_Call
func (*MockNonceManager_GetNonce_Call) Run ¶
func (_c *MockNonceManager_GetNonce_Call) Run(run func(ctx context.Context)) *MockNonceManager_GetNonce_Call
func (*MockNonceManager_GetNonce_Call) RunAndReturn ¶
func (_c *MockNonceManager_GetNonce_Call) RunAndReturn(run func(context.Context) (*noncemanager.NonceContext, error)) *MockNonceManager_GetNonce_Call
type MockNonceManager_Replenish_Call ¶
MockNonceManager_Replenish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Replenish'
func (*MockNonceManager_Replenish_Call) Return ¶
func (_c *MockNonceManager_Replenish_Call) Return(_a0 error) *MockNonceManager_Replenish_Call
func (*MockNonceManager_Replenish_Call) Run ¶
func (_c *MockNonceManager_Replenish_Call) Run(run func(ctx context.Context, nonce big.Int)) *MockNonceManager_Replenish_Call
func (*MockNonceManager_Replenish_Call) RunAndReturn ¶
func (_c *MockNonceManager_Replenish_Call) RunAndReturn(run func(context.Context, big.Int) error) *MockNonceManager_Replenish_Call