3-phase PV router
Loading...
Searching...
No Matches
test_main.cpp File Reference
#include <unity.h>
#include <cstdio>
#include <chrono>
#include <vector>
#include <functional>
Include dependency graph for test_main.cpp:

Go to the source code of this file.

Classes

class  EWMA_average< A >
 Implements an Exponentially Weighted Moving Average (EWMA). More...
 
class  SimpleMovingAverage
 

Functions

double benchmark_operation (std::function< void() > operation, int iterations=100000)
 
int main ()
 
constexpr uint8_t round_up_to_power_of_2 (uint16_t v)
 
void setUp (void)
 
void tearDown (void)
 
void test_alpha_parameter_effects ()
 
void test_cloud_immunity_simulation ()
 
void test_performance_comparison ()
 
void test_responsiveness_comparison ()
 

Function Documentation

◆ benchmark_operation()

double benchmark_operation ( std::function< void() > operation,
int iterations = 100000 )

Definition at line 118 of file test_main.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 332 of file test_main.cpp.

Here is the call graph for this function:

◆ round_up_to_power_of_2()

uint8_t round_up_to_power_of_2 ( uint16_t v)
constexpr

Definition at line 11 of file test_main.cpp.

Here is the caller graph for this function:

◆ setUp()

void setUp ( void )

Definition at line 107 of file test_main.cpp.

◆ tearDown()

void tearDown ( void )

Definition at line 112 of file test_main.cpp.

◆ test_alpha_parameter_effects()

void test_alpha_parameter_effects ( )

Definition at line 300 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_cloud_immunity_simulation()

void test_cloud_immunity_simulation ( )

Definition at line 186 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_performance_comparison()

void test_performance_comparison ( )

Definition at line 133 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_responsiveness_comparison()

void test_responsiveness_comparison ( )

Definition at line 264 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: