2021-05-25 02:18:59 -07:00
|
|
|
// Code generated by MockGen.
|
2020-03-03 05:38:46 -08:00
|
|
|
// Source: types/handler.go
|
2021-05-25 02:18:59 -07:00
|
|
|
// Chanes:
|
|
|
|
// + AnteHandler(...): calling `next` at the end of the function to run all anthe handler chain.
|
2020-03-03 05:38:46 -08:00
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
2021-05-25 02:18:59 -07:00
|
|
|
reflect "reflect"
|
|
|
|
|
2020-03-20 10:14:14 -07:00
|
|
|
types "github.com/cosmos/cosmos-sdk/types"
|
2020-03-20 11:14:53 -07:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2020-03-03 05:38:46 -08:00
|
|
|
)
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// MockAnteDecorator is a mock of AnteDecorator interface.
|
2020-03-03 05:38:46 -08:00
|
|
|
type MockAnteDecorator struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockAnteDecoratorMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// MockAnteDecoratorMockRecorder is the mock recorder for MockAnteDecorator.
|
2020-03-03 05:38:46 -08:00
|
|
|
type MockAnteDecoratorMockRecorder struct {
|
|
|
|
mock *MockAnteDecorator
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// NewMockAnteDecorator creates a new mock instance.
|
2020-03-03 05:38:46 -08:00
|
|
|
func NewMockAnteDecorator(ctrl *gomock.Controller) *MockAnteDecorator {
|
|
|
|
mock := &MockAnteDecorator{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockAnteDecoratorMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-03-03 05:38:46 -08:00
|
|
|
func (m *MockAnteDecorator) EXPECT() *MockAnteDecoratorMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// AnteHandle mocks base method.
|
2020-03-03 05:38:46 -08:00
|
|
|
func (m *MockAnteDecorator) AnteHandle(ctx types.Context, tx types.Tx, simulate bool, next types.AnteHandler) (types.Context, error) {
|
|
|
|
m.ctrl.T.Helper()
|
2021-05-25 02:18:59 -07:00
|
|
|
m.ctrl.Call(m, "AnteHandle", ctx, tx, simulate, next)
|
|
|
|
// NOTE: we need to edit a generated code to call the "next handler"
|
|
|
|
return next(ctx, tx, simulate)
|
2020-03-03 05:38:46 -08:00
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// AnteHandle indicates an expected call of AnteHandle.
|
2020-03-03 05:38:46 -08:00
|
|
|
func (mr *MockAnteDecoratorMockRecorder) AnteHandle(ctx, tx, simulate, next interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AnteHandle", reflect.TypeOf((*MockAnteDecorator)(nil).AnteHandle), ctx, tx, simulate, next)
|
|
|
|
}
|