Finance manager
Лабораторна робота №2 - Документація коду
Loading...
Searching...
No Matches
Classes | Functions
test_forecast.cpp File Reference
#include "gtest/gtest.h"
#include "../Forecast.h"
#include "../ForecastModel.h"
#include "../Transaction.h"
#include <filesystem>
#include <vector>
Include dependency graph for test_forecast.cpp:

Classes

class  ForecastTestFixture
 
class  ForecastModelTestFixture
 

Functions

 TEST_F (ForecastTestFixture, GIVEN_Data_WHEN_PredictNextCalled_THEN_ReturnsAverageDifference)
 
 TEST_F (ForecastTestFixture, GIVEN_EmptyData_WHEN_PredictNextCalled_THEN_ReturnsZero)
 
 TEST_F (ForecastModelTestFixture, GIVEN_Transactions_WHEN_ForecastNextMonthCalled_THEN_ReturnsExpectedValue)
 
 TEST_F (ForecastModelTestFixture, GIVEN_EmptyTransactions_WHEN_ForecastNextMonthCalled_THEN_ReturnsZero)
 
 TEST_F (ForecastModelTestFixture, GIVEN_Values_WHEN_RollingAverageCalled_THEN_ReturnsCorrectAverage)
 
 TEST_F (ForecastModelTestFixture, GIVEN_EmptyValues_WHEN_RollingAverageCalled_THEN_ReturnsZero)
 
 TEST_F (ForecastModelTestFixture, GIVEN_WindowLargerThanSize_WHEN_RollingAverageCalled_THEN_UsesAllValues)
 
 TEST_F (ForecastModelTestFixture, GIVEN_Transactions_WHEN_TrainModelCalled_THEN_DoesNotThrow)
 
 TEST_F (ForecastModelTestFixture, GIVEN_Transactions_WHEN_EvaluateForecastCalled_THEN_ReturnsZero)
 

Function Documentation

◆ TEST_F() [1/9]

TEST_F ( ForecastModelTestFixture  ,
GIVEN_EmptyTransactions_WHEN_ForecastNextMonthCalled_THEN_ReturnsZero   
)

◆ TEST_F() [2/9]

TEST_F ( ForecastModelTestFixture  ,
GIVEN_EmptyValues_WHEN_RollingAverageCalled_THEN_ReturnsZero   
)

◆ TEST_F() [3/9]

TEST_F ( ForecastModelTestFixture  ,
GIVEN_Transactions_WHEN_EvaluateForecastCalled_THEN_ReturnsZero   
)

◆ TEST_F() [4/9]

TEST_F ( ForecastModelTestFixture  ,
GIVEN_Transactions_WHEN_ForecastNextMonthCalled_THEN_ReturnsExpectedValue   
)

◆ TEST_F() [5/9]

TEST_F ( ForecastModelTestFixture  ,
GIVEN_Transactions_WHEN_TrainModelCalled_THEN_DoesNotThrow   
)

◆ TEST_F() [6/9]

TEST_F ( ForecastModelTestFixture  ,
GIVEN_Values_WHEN_RollingAverageCalled_THEN_ReturnsCorrectAverage   
)

◆ TEST_F() [7/9]

TEST_F ( ForecastModelTestFixture  ,
GIVEN_WindowLargerThanSize_WHEN_RollingAverageCalled_THEN_UsesAllValues   
)

◆ TEST_F() [8/9]

TEST_F ( ForecastTestFixture  ,
GIVEN_Data_WHEN_PredictNextCalled_THEN_ReturnsAverageDifference   
)

◆ TEST_F() [9/9]

TEST_F ( ForecastTestFixture  ,
GIVEN_EmptyData_WHEN_PredictNextCalled_THEN_ReturnsZero   
)