code.vegaprotocol.io/vega@v0.79.0/core/monitor/price/mocks/state_var_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/core/monitor/price (interfaces: StateVarEngine) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 statevar "code.vegaprotocol.io/vega/core/types/statevar" 12 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockStateVarEngine is a mock of StateVarEngine interface. 16 type MockStateVarEngine struct { 17 ctrl *gomock.Controller 18 recorder *MockStateVarEngineMockRecorder 19 } 20 21 // MockStateVarEngineMockRecorder is the mock recorder for MockStateVarEngine. 22 type MockStateVarEngineMockRecorder struct { 23 mock *MockStateVarEngine 24 } 25 26 // NewMockStateVarEngine creates a new mock instance. 27 func NewMockStateVarEngine(ctrl *gomock.Controller) *MockStateVarEngine { 28 mock := &MockStateVarEngine{ctrl: ctrl} 29 mock.recorder = &MockStateVarEngineMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockStateVarEngine) EXPECT() *MockStateVarEngineMockRecorder { 35 return m.recorder 36 } 37 38 // RegisterStateVariable mocks base method. 39 func (m *MockStateVarEngine) RegisterStateVariable(arg0, arg1, arg2 string, arg3 statevar.Converter, arg4 func(string, statevar.FinaliseCalculation), arg5 []statevar.EventType, arg6 func(context.Context, statevar.StateVariableResult) error) error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "RegisterStateVariable", arg0, arg1, arg2, arg3, arg4, arg5, arg6) 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // RegisterStateVariable indicates an expected call of RegisterStateVariable. 47 func (mr *MockStateVarEngineMockRecorder) RegisterStateVariable(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterStateVariable", reflect.TypeOf((*MockStateVarEngine)(nil).RegisterStateVariable), arg0, arg1, arg2, arg3, arg4, arg5, arg6) 50 }