code.vegaprotocol.io/vega@v0.79.0/core/execution/liquidation/mocks/mocks.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/core/execution/liquidation (interfaces: Book,IDGen,Positions,PriceMonitor,AMM)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	events "code.vegaprotocol.io/vega/core/events"
    12  	positions "code.vegaprotocol.io/vega/core/positions"
    13  	types "code.vegaprotocol.io/vega/core/types"
    14  	num "code.vegaprotocol.io/vega/libs/num"
    15  	vega "code.vegaprotocol.io/vega/protos/vega"
    16  	gomock "github.com/golang/mock/gomock"
    17  )
    18  
    19  // MockBook is a mock of Book interface.
    20  type MockBook struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockBookMockRecorder
    23  }
    24  
    25  // MockBookMockRecorder is the mock recorder for MockBook.
    26  type MockBookMockRecorder struct {
    27  	mock *MockBook
    28  }
    29  
    30  // NewMockBook creates a new mock instance.
    31  func NewMockBook(ctrl *gomock.Controller) *MockBook {
    32  	mock := &MockBook{ctrl: ctrl}
    33  	mock.recorder = &MockBookMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockBook) EXPECT() *MockBookMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // GetVolumeAtPrice mocks base method.
    43  func (m *MockBook) GetVolumeAtPrice(arg0 *num.Uint, arg1 vega.Side) uint64 {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "GetVolumeAtPrice", arg0, arg1)
    46  	ret0, _ := ret[0].(uint64)
    47  	return ret0
    48  }
    49  
    50  // GetVolumeAtPrice indicates an expected call of GetVolumeAtPrice.
    51  func (mr *MockBookMockRecorder) GetVolumeAtPrice(arg0, arg1 interface{}) *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVolumeAtPrice", reflect.TypeOf((*MockBook)(nil).GetVolumeAtPrice), arg0, arg1)
    54  }
    55  
    56  // MockIDGen is a mock of IDGen interface.
    57  type MockIDGen struct {
    58  	ctrl     *gomock.Controller
    59  	recorder *MockIDGenMockRecorder
    60  }
    61  
    62  // MockIDGenMockRecorder is the mock recorder for MockIDGen.
    63  type MockIDGenMockRecorder struct {
    64  	mock *MockIDGen
    65  }
    66  
    67  // NewMockIDGen creates a new mock instance.
    68  func NewMockIDGen(ctrl *gomock.Controller) *MockIDGen {
    69  	mock := &MockIDGen{ctrl: ctrl}
    70  	mock.recorder = &MockIDGenMockRecorder{mock}
    71  	return mock
    72  }
    73  
    74  // EXPECT returns an object that allows the caller to indicate expected use.
    75  func (m *MockIDGen) EXPECT() *MockIDGenMockRecorder {
    76  	return m.recorder
    77  }
    78  
    79  // NextID mocks base method.
    80  func (m *MockIDGen) NextID() string {
    81  	m.ctrl.T.Helper()
    82  	ret := m.ctrl.Call(m, "NextID")
    83  	ret0, _ := ret[0].(string)
    84  	return ret0
    85  }
    86  
    87  // NextID indicates an expected call of NextID.
    88  func (mr *MockIDGenMockRecorder) NextID() *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextID", reflect.TypeOf((*MockIDGen)(nil).NextID))
    91  }
    92  
    93  // MockPositions is a mock of Positions interface.
    94  type MockPositions struct {
    95  	ctrl     *gomock.Controller
    96  	recorder *MockPositionsMockRecorder
    97  }
    98  
    99  // MockPositionsMockRecorder is the mock recorder for MockPositions.
   100  type MockPositionsMockRecorder struct {
   101  	mock *MockPositions
   102  }
   103  
   104  // NewMockPositions creates a new mock instance.
   105  func NewMockPositions(ctrl *gomock.Controller) *MockPositions {
   106  	mock := &MockPositions{ctrl: ctrl}
   107  	mock.recorder = &MockPositionsMockRecorder{mock}
   108  	return mock
   109  }
   110  
   111  // EXPECT returns an object that allows the caller to indicate expected use.
   112  func (m *MockPositions) EXPECT() *MockPositionsMockRecorder {
   113  	return m.recorder
   114  }
   115  
   116  // RegisterOrder mocks base method.
   117  func (m *MockPositions) RegisterOrder(arg0 context.Context, arg1 *types.Order) *positions.MarketPosition {
   118  	m.ctrl.T.Helper()
   119  	ret := m.ctrl.Call(m, "RegisterOrder", arg0, arg1)
   120  	ret0, _ := ret[0].(*positions.MarketPosition)
   121  	return ret0
   122  }
   123  
   124  // RegisterOrder indicates an expected call of RegisterOrder.
   125  func (mr *MockPositionsMockRecorder) RegisterOrder(arg0, arg1 interface{}) *gomock.Call {
   126  	mr.mock.ctrl.T.Helper()
   127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterOrder", reflect.TypeOf((*MockPositions)(nil).RegisterOrder), arg0, arg1)
   128  }
   129  
   130  // Update mocks base method.
   131  func (m *MockPositions) Update(arg0 context.Context, arg1 *types.Trade, arg2, arg3 *types.Order) []events.MarketPosition {
   132  	m.ctrl.T.Helper()
   133  	ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2, arg3)
   134  	ret0, _ := ret[0].([]events.MarketPosition)
   135  	return ret0
   136  }
   137  
   138  // Update indicates an expected call of Update.
   139  func (mr *MockPositionsMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   140  	mr.mock.ctrl.T.Helper()
   141  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPositions)(nil).Update), arg0, arg1, arg2, arg3)
   142  }
   143  
   144  // MockPriceMonitor is a mock of PriceMonitor interface.
   145  type MockPriceMonitor struct {
   146  	ctrl     *gomock.Controller
   147  	recorder *MockPriceMonitorMockRecorder
   148  }
   149  
   150  // MockPriceMonitorMockRecorder is the mock recorder for MockPriceMonitor.
   151  type MockPriceMonitorMockRecorder struct {
   152  	mock *MockPriceMonitor
   153  }
   154  
   155  // NewMockPriceMonitor creates a new mock instance.
   156  func NewMockPriceMonitor(ctrl *gomock.Controller) *MockPriceMonitor {
   157  	mock := &MockPriceMonitor{ctrl: ctrl}
   158  	mock.recorder = &MockPriceMonitorMockRecorder{mock}
   159  	return mock
   160  }
   161  
   162  // EXPECT returns an object that allows the caller to indicate expected use.
   163  func (m *MockPriceMonitor) EXPECT() *MockPriceMonitorMockRecorder {
   164  	return m.recorder
   165  }
   166  
   167  // GetValidPriceRange mocks base method.
   168  func (m *MockPriceMonitor) GetValidPriceRange() (num.WrappedDecimal, num.WrappedDecimal) {
   169  	m.ctrl.T.Helper()
   170  	ret := m.ctrl.Call(m, "GetValidPriceRange")
   171  	ret0, _ := ret[0].(num.WrappedDecimal)
   172  	ret1, _ := ret[1].(num.WrappedDecimal)
   173  	return ret0, ret1
   174  }
   175  
   176  // GetValidPriceRange indicates an expected call of GetValidPriceRange.
   177  func (mr *MockPriceMonitorMockRecorder) GetValidPriceRange() *gomock.Call {
   178  	mr.mock.ctrl.T.Helper()
   179  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValidPriceRange", reflect.TypeOf((*MockPriceMonitor)(nil).GetValidPriceRange))
   180  }
   181  
   182  // MockAMM is a mock of AMM interface.
   183  type MockAMM struct {
   184  	ctrl     *gomock.Controller
   185  	recorder *MockAMMMockRecorder
   186  }
   187  
   188  // MockAMMMockRecorder is the mock recorder for MockAMM.
   189  type MockAMMMockRecorder struct {
   190  	mock *MockAMM
   191  }
   192  
   193  // NewMockAMM creates a new mock instance.
   194  func NewMockAMM(ctrl *gomock.Controller) *MockAMM {
   195  	mock := &MockAMM{ctrl: ctrl}
   196  	mock.recorder = &MockAMMMockRecorder{mock}
   197  	return mock
   198  }
   199  
   200  // EXPECT returns an object that allows the caller to indicate expected use.
   201  func (m *MockAMM) EXPECT() *MockAMMMockRecorder {
   202  	return m.recorder
   203  }
   204  
   205  // GetVolumeAtPrice mocks base method.
   206  func (m *MockAMM) GetVolumeAtPrice(arg0 *num.Uint, arg1 vega.Side) uint64 {
   207  	m.ctrl.T.Helper()
   208  	ret := m.ctrl.Call(m, "GetVolumeAtPrice", arg0, arg1)
   209  	ret0, _ := ret[0].(uint64)
   210  	return ret0
   211  }
   212  
   213  // GetVolumeAtPrice indicates an expected call of GetVolumeAtPrice.
   214  func (mr *MockAMMMockRecorder) GetVolumeAtPrice(arg0, arg1 interface{}) *gomock.Call {
   215  	mr.mock.ctrl.T.Helper()
   216  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVolumeAtPrice", reflect.TypeOf((*MockAMM)(nil).GetVolumeAtPrice), arg0, arg1)
   217  }