gas

package
v0.0.0-...-78b5cd4 Latest Latest
Warning

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

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

Documentation

Overview

Package gas is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMeter

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

MockMeter is a mock of Meter interface.

func NewMockMeter

func NewMockMeter(ctrl *gomock.Controller) *MockMeter

NewMockMeter creates a new mock instance.

func (*MockMeter) Consume

func (m *MockMeter) Consume(amount gas.Gas, descriptor string) error

Consume mocks base method.

func (*MockMeter) Consumed

func (m *MockMeter) Consumed() gas.Gas

Consumed mocks base method.

func (*MockMeter) EXPECT

func (m *MockMeter) EXPECT() *MockMeterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMeter) Limit

func (m *MockMeter) Limit() gas.Gas

Limit mocks base method.

func (*MockMeter) Refund

func (m *MockMeter) Refund(amount gas.Gas, descriptor string) error

Refund mocks base method.

func (*MockMeter) Remaining

func (m *MockMeter) Remaining() gas.Gas

Remaining mocks base method.

type MockMeterMockRecorder

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

MockMeterMockRecorder is the mock recorder for MockMeter.

func (*MockMeterMockRecorder) Consume

func (mr *MockMeterMockRecorder) Consume(amount, descriptor any) *gomock.Call

Consume indicates an expected call of Consume.

func (*MockMeterMockRecorder) Consumed

func (mr *MockMeterMockRecorder) Consumed() *gomock.Call

Consumed indicates an expected call of Consumed.

func (*MockMeterMockRecorder) Limit

func (mr *MockMeterMockRecorder) Limit() *gomock.Call

Limit indicates an expected call of Limit.

func (*MockMeterMockRecorder) Refund

func (mr *MockMeterMockRecorder) Refund(amount, descriptor any) *gomock.Call

Refund indicates an expected call of Refund.

func (*MockMeterMockRecorder) Remaining

func (mr *MockMeterMockRecorder) Remaining() *gomock.Call

Remaining indicates an expected call of Remaining.

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockService) GasConfig

func (m *MockService) GasConfig(ctx context.Context) gas.GasConfig

GasConfig mocks base method.

func (*MockService) GasMeter

func (m *MockService) GasMeter(arg0 context.Context) gas.Meter

GasMeter mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) GasConfig

func (mr *MockServiceMockRecorder) GasConfig(ctx any) *gomock.Call

GasConfig indicates an expected call of GasConfig.

func (*MockServiceMockRecorder) GasMeter

func (mr *MockServiceMockRecorder) GasMeter(arg0 any) *gomock.Call

GasMeter indicates an expected call of GasMeter.

Jump to

Keyboard shortcuts

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