code.vegaprotocol.io/vega@v0.79.0/datanode/api/mocks/risk_factor_service_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/datanode/api (interfaces: RiskFactorService)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	entities "code.vegaprotocol.io/vega/datanode/entities"
    12  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockRiskFactorService is a mock of RiskFactorService interface.
    16  type MockRiskFactorService struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockRiskFactorServiceMockRecorder
    19  }
    20  
    21  // MockRiskFactorServiceMockRecorder is the mock recorder for MockRiskFactorService.
    22  type MockRiskFactorServiceMockRecorder struct {
    23  	mock *MockRiskFactorService
    24  }
    25  
    26  // NewMockRiskFactorService creates a new mock instance.
    27  func NewMockRiskFactorService(ctrl *gomock.Controller) *MockRiskFactorService {
    28  	mock := &MockRiskFactorService{ctrl: ctrl}
    29  	mock.recorder = &MockRiskFactorServiceMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockRiskFactorService) EXPECT() *MockRiskFactorServiceMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // GetMarketRiskFactors mocks base method.
    39  func (m *MockRiskFactorService) GetMarketRiskFactors(arg0 context.Context, arg1 string) (entities.RiskFactor, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "GetMarketRiskFactors", arg0, arg1)
    42  	ret0, _ := ret[0].(entities.RiskFactor)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // GetMarketRiskFactors indicates an expected call of GetMarketRiskFactors.
    48  func (mr *MockRiskFactorServiceMockRecorder) GetMarketRiskFactors(arg0, arg1 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMarketRiskFactors", reflect.TypeOf((*MockRiskFactorService)(nil).GetMarketRiskFactors), arg0, arg1)
    51  }