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

Classes

class  MovingAverageStrategyTest
 

Functions

 TEST_F (MovingAverageStrategyTest, GivenTransactions_WhenForecastLastTwo_ThenReturnsAverage)
 
 TEST_F (MovingAverageStrategyTest, GivenEmptyTransactions_WhenForecastCalled_ThenReturnsZero)
 
 TEST_F (MovingAverageStrategyTest, GivenSmallData_WhenWindowLargerThanSize_ThenUsesAllTransactions)
 
 TEST_F (MovingAverageStrategyTest, GivenSingleTransaction_WhenWindowOne_ThenReturnsThatValue)
 
 TEST_F (MovingAverageStrategyTest, GivenTransactions_WhenWindowZero_ThenReturnsZero)
 
 TEST_F (MovingAverageStrategyTest, GivenTransactions_WhenWindowNegative_ThenReturnsZero)
 
 TEST_F (MovingAverageStrategyTest, GivenMixedCategories_WhenForecastCat1_ThenIgnoresOthers)
 

Function Documentation

◆ TEST_F() [1/7]

TEST_F ( MovingAverageStrategyTest  ,
GivenEmptyTransactions_WhenForecastCalled_ThenReturnsZero   
)

◆ TEST_F() [2/7]

TEST_F ( MovingAverageStrategyTest  ,
GivenMixedCategories_WhenForecastCat1_ThenIgnoresOthers   
)

◆ TEST_F() [3/7]

TEST_F ( MovingAverageStrategyTest  ,
GivenSingleTransaction_WhenWindowOne_ThenReturnsThatValue   
)

◆ TEST_F() [4/7]

TEST_F ( MovingAverageStrategyTest  ,
GivenSmallData_WhenWindowLargerThanSize_ThenUsesAllTransactions   
)

◆ TEST_F() [5/7]

TEST_F ( MovingAverageStrategyTest  ,
GivenTransactions_WhenForecastLastTwo_ThenReturnsAverage   
)

◆ TEST_F() [6/7]

TEST_F ( MovingAverageStrategyTest  ,
GivenTransactions_WhenWindowNegative_ThenReturnsZero   
)

◆ TEST_F() [7/7]

TEST_F ( MovingAverageStrategyTest  ,
GivenTransactions_WhenWindowZero_ThenReturnsZero   
)