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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/core/settlement (interfaces: Product)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	types "code.vegaprotocol.io/vega/core/types"
    11  	num "code.vegaprotocol.io/vega/libs/num"
    12  	gomock "github.com/golang/mock/gomock"
    13  	decimal "github.com/shopspring/decimal"
    14  )
    15  
    16  // MockProduct is a mock of Product interface.
    17  type MockProduct struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockProductMockRecorder
    20  }
    21  
    22  // MockProductMockRecorder is the mock recorder for MockProduct.
    23  type MockProductMockRecorder struct {
    24  	mock *MockProduct
    25  }
    26  
    27  // NewMockProduct creates a new mock instance.
    28  func NewMockProduct(ctrl *gomock.Controller) *MockProduct {
    29  	mock := &MockProduct{ctrl: ctrl}
    30  	mock.recorder = &MockProductMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockProduct) EXPECT() *MockProductMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // GetAsset mocks base method.
    40  func (m *MockProduct) GetAsset() string {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "GetAsset")
    43  	ret0, _ := ret[0].(string)
    44  	return ret0
    45  }
    46  
    47  // GetAsset indicates an expected call of GetAsset.
    48  func (mr *MockProductMockRecorder) GetAsset() *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAsset", reflect.TypeOf((*MockProduct)(nil).GetAsset))
    51  }
    52  
    53  // Settle mocks base method.
    54  func (m *MockProduct) Settle(arg0, arg1 *num.Uint, arg2 decimal.Decimal) (*types.FinancialAmount, bool, decimal.Decimal, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "Settle", arg0, arg1, arg2)
    57  	ret0, _ := ret[0].(*types.FinancialAmount)
    58  	ret1, _ := ret[1].(bool)
    59  	ret2, _ := ret[2].(decimal.Decimal)
    60  	ret3, _ := ret[3].(error)
    61  	return ret0, ret1, ret2, ret3
    62  }
    63  
    64  // Settle indicates an expected call of Settle.
    65  func (mr *MockProductMockRecorder) Settle(arg0, arg1, arg2 interface{}) *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Settle", reflect.TypeOf((*MockProduct)(nil).Settle), arg0, arg1, arg2)
    68  }