3-phase PV router
Loading...
Searching...
No Matches
test_main.cpp File Reference
#include <Arduino.h>
#include <unity.h>
#include "utils_pins.h"
#include "utils_relay.h"
Include dependency graph for test_main.cpp:

Go to the source code of this file.

Functions

void loop ()
 
void setUp (void)
 
void setup ()
 
void tearDown (void)
 
void test_get_importThreshold (void)
 
void test_get_minOFF (void)
 
void test_get_minON (void)
 
void test_get_pin (void)
 
void test_get_size (void)
 
void test_get_surplusThreshold (void)
 
void test_isRelayON (void)
 
void test_proceed_relay (void)
 
void test_relay_initialization (void)
 
void test_relay_initialization_with_negative_thresholds (void)
 
void test_relay_initialization_with_positive_thresholds (void)
 
void test_relay_turnOFF (void)
 
void test_relay_turnON (void)
 

Variables

constexpr RelayEngine relays
 

Function Documentation

◆ loop()

void loop ( )

Definition at line 151 of file test_main.cpp.

Here is the call graph for this function:

◆ setUp()

void setUp ( void )

Definition at line 11 of file test_main.cpp.

◆ setup()

void setup ( )

Definition at line 144 of file test_main.cpp.

◆ tearDown()

void tearDown ( void )

Definition at line 16 of file test_main.cpp.

◆ test_get_importThreshold()

void test_get_importThreshold ( void )

Definition at line 57 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_get_minOFF()

void test_get_minOFF ( void )

Definition at line 69 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_get_minON()

void test_get_minON ( void )

Definition at line 63 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_get_pin()

void test_get_pin ( void )

Definition at line 45 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_get_size()

void test_get_size ( void )

Definition at line 139 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_get_surplusThreshold()

void test_get_surplusThreshold ( void )

Definition at line 51 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_isRelayON()

void test_isRelayON ( void )

Definition at line 75 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_proceed_relay()

void test_proceed_relay ( void )

Definition at line 132 of file test_main.cpp.

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

◆ test_relay_initialization()

void test_relay_initialization ( void )

Definition at line 21 of file test_main.cpp.

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

◆ test_relay_initialization_with_negative_thresholds()

void test_relay_initialization_with_negative_thresholds ( void )

Definition at line 37 of file test_main.cpp.

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

◆ test_relay_initialization_with_positive_thresholds()

void test_relay_initialization_with_positive_thresholds ( void )

Definition at line 29 of file test_main.cpp.

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

◆ test_relay_turnOFF()

void test_relay_turnOFF ( void )

Definition at line 106 of file test_main.cpp.

Here is the caller graph for this function:

◆ test_relay_turnON()

void test_relay_turnON ( void )

Definition at line 80 of file test_main.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ relays

RelayEngine relays
constexpr
Initial value:
{ { { 2, 1000, 200, 1, 1 },
{ 3, 100, 20, 2, 3 } } }

Definition at line 8 of file test_main.cpp.