Documentation ¶
Overview ¶
Package gas is a generated GoMock package.
Index ¶
- type MockMeter
- func (m *MockMeter) Consume(amount gas.Gas, descriptor string) error
- func (m *MockMeter) Consumed() gas.Gas
- func (m *MockMeter) EXPECT() *MockMeterMockRecorder
- func (m *MockMeter) Limit() gas.Gas
- func (m *MockMeter) Refund(amount gas.Gas, descriptor string) error
- func (m *MockMeter) Remaining() gas.Gas
- type MockMeterMockRecorder
- func (mr *MockMeterMockRecorder) Consume(amount, descriptor any) *gomock.Call
- func (mr *MockMeterMockRecorder) Consumed() *gomock.Call
- func (mr *MockMeterMockRecorder) Limit() *gomock.Call
- func (mr *MockMeterMockRecorder) Refund(amount, descriptor any) *gomock.Call
- func (mr *MockMeterMockRecorder) Remaining() *gomock.Call
- type MockService
- type MockServiceMockRecorder
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) EXPECT ¶
func (m *MockMeter) EXPECT() *MockMeterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.