code.vegaprotocol.io/vega@v0.79.0/core/settlement/mocks/market_position_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/core/settlement (interfaces: MarketPosition)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	num "code.vegaprotocol.io/vega/libs/num"
    11  	gomock "github.com/golang/mock/gomock"
    12  )
    13  
    14  // MockMarketPosition is a mock of MarketPosition interface.
    15  type MockMarketPosition struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockMarketPositionMockRecorder
    18  }
    19  
    20  // MockMarketPositionMockRecorder is the mock recorder for MockMarketPosition.
    21  type MockMarketPositionMockRecorder struct {
    22  	mock *MockMarketPosition
    23  }
    24  
    25  // NewMockMarketPosition creates a new mock instance.
    26  func NewMockMarketPosition(ctrl *gomock.Controller) *MockMarketPosition {
    27  	mock := &MockMarketPosition{ctrl: ctrl}
    28  	mock.recorder = &MockMarketPositionMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockMarketPosition) EXPECT() *MockMarketPositionMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // AverageEntryPrice mocks base method.
    38  func (m *MockMarketPosition) AverageEntryPrice() *num.Uint {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "AverageEntryPrice")
    41  	ret0, _ := ret[0].(*num.Uint)
    42  	return ret0
    43  }
    44  
    45  // AverageEntryPrice indicates an expected call of AverageEntryPrice.
    46  func (mr *MockMarketPositionMockRecorder) AverageEntryPrice() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AverageEntryPrice", reflect.TypeOf((*MockMarketPosition)(nil).AverageEntryPrice))
    49  }
    50  
    51  // Buy mocks base method.
    52  func (m *MockMarketPosition) Buy() int64 {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "Buy")
    55  	ret0, _ := ret[0].(int64)
    56  	return ret0
    57  }
    58  
    59  // Buy indicates an expected call of Buy.
    60  func (mr *MockMarketPositionMockRecorder) Buy() *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Buy", reflect.TypeOf((*MockMarketPosition)(nil).Buy))
    63  }
    64  
    65  // BuySumProduct mocks base method.
    66  func (m *MockMarketPosition) BuySumProduct() *num.Uint {
    67  	m.ctrl.T.Helper()
    68  	ret := m.ctrl.Call(m, "BuySumProduct")
    69  	ret0, _ := ret[0].(*num.Uint)
    70  	return ret0
    71  }
    72  
    73  // BuySumProduct indicates an expected call of BuySumProduct.
    74  func (mr *MockMarketPositionMockRecorder) BuySumProduct() *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuySumProduct", reflect.TypeOf((*MockMarketPosition)(nil).BuySumProduct))
    77  }
    78  
    79  // ClearPotentials mocks base method.
    80  func (m *MockMarketPosition) ClearPotentials() {
    81  	m.ctrl.T.Helper()
    82  	m.ctrl.Call(m, "ClearPotentials")
    83  }
    84  
    85  // ClearPotentials indicates an expected call of ClearPotentials.
    86  func (mr *MockMarketPositionMockRecorder) ClearPotentials() *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClearPotentials", reflect.TypeOf((*MockMarketPosition)(nil).ClearPotentials))
    89  }
    90  
    91  // Party mocks base method.
    92  func (m *MockMarketPosition) Party() string {
    93  	m.ctrl.T.Helper()
    94  	ret := m.ctrl.Call(m, "Party")
    95  	ret0, _ := ret[0].(string)
    96  	return ret0
    97  }
    98  
    99  // Party indicates an expected call of Party.
   100  func (mr *MockMarketPositionMockRecorder) Party() *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Party", reflect.TypeOf((*MockMarketPosition)(nil).Party))
   103  }
   104  
   105  // Price mocks base method.
   106  func (m *MockMarketPosition) Price() *num.Uint {
   107  	m.ctrl.T.Helper()
   108  	ret := m.ctrl.Call(m, "Price")
   109  	ret0, _ := ret[0].(*num.Uint)
   110  	return ret0
   111  }
   112  
   113  // Price indicates an expected call of Price.
   114  func (mr *MockMarketPositionMockRecorder) Price() *gomock.Call {
   115  	mr.mock.ctrl.T.Helper()
   116  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Price", reflect.TypeOf((*MockMarketPosition)(nil).Price))
   117  }
   118  
   119  // Sell mocks base method.
   120  func (m *MockMarketPosition) Sell() int64 {
   121  	m.ctrl.T.Helper()
   122  	ret := m.ctrl.Call(m, "Sell")
   123  	ret0, _ := ret[0].(int64)
   124  	return ret0
   125  }
   126  
   127  // Sell indicates an expected call of Sell.
   128  func (mr *MockMarketPositionMockRecorder) Sell() *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sell", reflect.TypeOf((*MockMarketPosition)(nil).Sell))
   131  }
   132  
   133  // SellSumProduct mocks base method.
   134  func (m *MockMarketPosition) SellSumProduct() *num.Uint {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "SellSumProduct")
   137  	ret0, _ := ret[0].(*num.Uint)
   138  	return ret0
   139  }
   140  
   141  // SellSumProduct indicates an expected call of SellSumProduct.
   142  func (mr *MockMarketPositionMockRecorder) SellSumProduct() *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SellSumProduct", reflect.TypeOf((*MockMarketPosition)(nil).SellSumProduct))
   145  }
   146  
   147  // Size mocks base method.
   148  func (m *MockMarketPosition) Size() int64 {
   149  	m.ctrl.T.Helper()
   150  	ret := m.ctrl.Call(m, "Size")
   151  	ret0, _ := ret[0].(int64)
   152  	return ret0
   153  }
   154  
   155  // Size indicates an expected call of Size.
   156  func (mr *MockMarketPositionMockRecorder) Size() *gomock.Call {
   157  	mr.mock.ctrl.T.Helper()
   158  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockMarketPosition)(nil).Size))
   159  }
   160  
   161  // VWBuy mocks base method.
   162  func (m *MockMarketPosition) VWBuy() *num.Uint {
   163  	m.ctrl.T.Helper()
   164  	ret := m.ctrl.Call(m, "VWBuy")
   165  	ret0, _ := ret[0].(*num.Uint)
   166  	return ret0
   167  }
   168  
   169  // VWBuy indicates an expected call of VWBuy.
   170  func (mr *MockMarketPositionMockRecorder) VWBuy() *gomock.Call {
   171  	mr.mock.ctrl.T.Helper()
   172  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VWBuy", reflect.TypeOf((*MockMarketPosition)(nil).VWBuy))
   173  }
   174  
   175  // VWSell mocks base method.
   176  func (m *MockMarketPosition) VWSell() *num.Uint {
   177  	m.ctrl.T.Helper()
   178  	ret := m.ctrl.Call(m, "VWSell")
   179  	ret0, _ := ret[0].(*num.Uint)
   180  	return ret0
   181  }
   182  
   183  // VWSell indicates an expected call of VWSell.
   184  func (mr *MockMarketPositionMockRecorder) VWSell() *gomock.Call {
   185  	mr.mock.ctrl.T.Helper()
   186  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VWSell", reflect.TypeOf((*MockMarketPosition)(nil).VWSell))
   187  }