|
Finance manager
Лабораторна робота №2 - Документація коду
|
#include "gtest/gtest.h"#include "../MovingAverageStrategy.h"#include "../Transaction.h"#include <vector>
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) | |
| TEST_F | ( | MovingAverageStrategyTest | , |
| GivenEmptyTransactions_WhenForecastCalled_ThenReturnsZero | |||
| ) |
| TEST_F | ( | MovingAverageStrategyTest | , |
| GivenMixedCategories_WhenForecastCat1_ThenIgnoresOthers | |||
| ) |
| TEST_F | ( | MovingAverageStrategyTest | , |
| GivenSingleTransaction_WhenWindowOne_ThenReturnsThatValue | |||
| ) |
| TEST_F | ( | MovingAverageStrategyTest | , |
| GivenSmallData_WhenWindowLargerThanSize_ThenUsesAllTransactions | |||
| ) |
| TEST_F | ( | MovingAverageStrategyTest | , |
| GivenTransactions_WhenForecastLastTwo_ThenReturnsAverage | |||
| ) |
| TEST_F | ( | MovingAverageStrategyTest | , |
| GivenTransactions_WhenWindowNegative_ThenReturnsZero | |||
| ) |
| TEST_F | ( | MovingAverageStrategyTest | , |
| GivenTransactions_WhenWindowZero_ThenReturnsZero | |||
| ) |