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

Go to the source code of this file.

Classes

class  MockRelayOutput
 

Macros

#define HIGH   1
 
#define LOW   0
 

Typedefs

typedef uint8_t byte
 

Enumerations

enum  outputType_t : byte { DIGITAL_PIN , RELAY }
 
enum  relayState_t : byte { RELAY_ON , RELAY_OFF }
 

Functions

int main ()
 
void setUp (void)
 
void tearDown (void)
 
void test_large_negative_threshold ()
 
void test_negative_threshold_battery_scenario ()
 
void test_negative_threshold_edge_cases ()
 
void test_negative_threshold_import_scenarios ()
 
void test_normal_positive_threshold ()
 
void test_state_transitions_with_debug ()
 
void test_zero_threshold_special_case ()
 

Macro Definition Documentation

◆ HIGH

#define HIGH   1

Definition at line 6 of file test_main.cpp.

◆ LOW

#define LOW   0

Definition at line 7 of file test_main.cpp.

Typedef Documentation

◆ byte

typedef uint8_t byte

Definition at line 5 of file test_main.cpp.

Enumeration Type Documentation

◆ outputType_t

Enumerator
DIGITAL_PIN 
RELAY 

Definition at line 15 of file test_main.cpp.

◆ relayState_t

Enumerator
RELAY_ON 
RELAY_OFF 

Definition at line 10 of file test_main.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 205 of file test_main.cpp.

Here is the call graph for this function:

◆ setUp()

void setUp ( void )

Definition at line 73 of file test_main.cpp.

◆ tearDown()

void tearDown ( void )

Definition at line 78 of file test_main.cpp.

◆ test_large_negative_threshold()

void test_large_negative_threshold ( )

Definition at line 165 of file test_main.cpp.

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

◆ test_negative_threshold_battery_scenario()

void test_negative_threshold_battery_scenario ( )

Definition at line 102 of file test_main.cpp.

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

◆ test_negative_threshold_edge_cases()

void test_negative_threshold_edge_cases ( )

Definition at line 122 of file test_main.cpp.

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

◆ test_negative_threshold_import_scenarios()

void test_negative_threshold_import_scenarios ( )

Definition at line 137 of file test_main.cpp.

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

◆ test_normal_positive_threshold()

void test_normal_positive_threshold ( )

Definition at line 83 of file test_main.cpp.

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

◆ test_state_transitions_with_debug()

void test_state_transitions_with_debug ( )

Definition at line 177 of file test_main.cpp.

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

◆ test_zero_threshold_special_case()

void test_zero_threshold_special_case ( )

Definition at line 154 of file test_main.cpp.

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