github.com/Finschia/finschia-sdk@v0.48.1/tests/mocks/types_handler.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: types/handler.go
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	types "github.com/Finschia/finschia-sdk/types"
    12  )
    13  
    14  // MockAnteDecorator is a mock of AnteDecorator interface.
    15  type MockAnteDecorator struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockAnteDecoratorMockRecorder
    18  }
    19  
    20  // MockAnteDecoratorMockRecorder is the mock recorder for MockAnteDecorator.
    21  type MockAnteDecoratorMockRecorder struct {
    22  	mock *MockAnteDecorator
    23  }
    24  
    25  // NewMockAnteDecorator creates a new mock instance.
    26  func NewMockAnteDecorator(ctrl *gomock.Controller) *MockAnteDecorator {
    27  	mock := &MockAnteDecorator{ctrl: ctrl}
    28  	mock.recorder = &MockAnteDecoratorMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockAnteDecorator) EXPECT() *MockAnteDecoratorMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // AnteHandle mocks base method.
    38  func (m *MockAnteDecorator) AnteHandle(ctx types.Context, tx types.Tx, simulate bool, next types.AnteHandler) (types.Context, error) {
    39  	m.ctrl.T.Helper()
    40  	m.ctrl.Call(m, "AnteHandle", ctx, tx, simulate, next)
    41  	// NOTE: we need to edit a generated code to call the "next handler"
    42  	return next(ctx, tx, simulate)
    43  }
    44  
    45  // AnteHandle indicates an expected call of AnteHandle.
    46  func (mr *MockAnteDecoratorMockRecorder) AnteHandle(ctx, tx, simulate, next interface{}) *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AnteHandle", reflect.TypeOf((*MockAnteDecorator)(nil).AnteHandle), ctx, tx, simulate, next)
    49  }