From 590df7b7700443529e0d7e51cbe6ef31d4fc1588 Mon Sep 17 00:00:00 2001 From: Wellington Junior Date: Thu, 28 Sep 2023 17:49:08 -0300 Subject: [PATCH] Mocks: new Mock interface --- backend/internal/usecase/mocks/mocks.go | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/backend/internal/usecase/mocks/mocks.go b/backend/internal/usecase/mocks/mocks.go index 0a4b28f7..841773e7 100644 --- a/backend/internal/usecase/mocks/mocks.go +++ b/backend/internal/usecase/mocks/mocks.go @@ -1017,6 +1017,21 @@ func (mr *MockLogTransactionRepoInterfaceMockRecorder) GetLogTransactionsByUserI return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogTransactionsByUserID", reflect.TypeOf((*MockLogTransactionRepoInterface)(nil).GetLogTransactionsByUserID), userID, timeRange) } +// LogTransactionSupplyByAssetID mocks base method. +func (m *MockLogTransactionRepoInterface) LogTransactionSupplyByAssetID(assetID int, timeRange, periodInitial, interval string) (entity.LogTransactionSupply, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "LogTransactionSupplyByAssetID", assetID, timeRange, periodInitial, interval) + ret0, _ := ret[0].(entity.LogTransactionSupply) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// LogTransactionSupplyByAssetID indicates an expected call of LogTransactionSupplyByAssetID. +func (mr *MockLogTransactionRepoInterfaceMockRecorder) LogTransactionSupplyByAssetID(assetID, timeRange, periodInitial, interval interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LogTransactionSupplyByAssetID", reflect.TypeOf((*MockLogTransactionRepoInterface)(nil).LogTransactionSupplyByAssetID), assetID, timeRange, periodInitial, interval) +} + // StoreLogTransaction mocks base method. func (m *MockLogTransactionRepoInterface) StoreLogTransaction(arg0 entity.LogTransaction) error { m.ctrl.T.Helper() @@ -1031,6 +1046,21 @@ func (mr *MockLogTransactionRepoInterfaceMockRecorder) StoreLogTransaction(arg0 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreLogTransaction", reflect.TypeOf((*MockLogTransactionRepoInterface)(nil).StoreLogTransaction), arg0) } +// SumLogTransactionSupply mocks base method. +func (m *MockLogTransactionRepoInterface) SumLogTransactionSupply(timeRange string, timeFrame time.Duration) ([]entity.SumLogTransactionSupply, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "SumLogTransactionSupply", timeRange, timeFrame) + ret0, _ := ret[0].([]entity.SumLogTransactionSupply) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// SumLogTransactionSupply indicates an expected call of SumLogTransactionSupply. +func (mr *MockLogTransactionRepoInterfaceMockRecorder) SumLogTransactionSupply(timeRange, timeFrame interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SumLogTransactionSupply", reflect.TypeOf((*MockLogTransactionRepoInterface)(nil).SumLogTransactionSupply), timeRange, timeFrame) +} + // SumLogTransactions mocks base method. func (m *MockLogTransactionRepoInterface) SumLogTransactions(timeRange string, timeFrame time.Duration) ([]entity.SumLogTransaction, error) { m.ctrl.T.Helper()