3-phase PV router
|
#include <unity.h>
#include <cstdio>
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 () |
#define HIGH 1 |
Definition at line 6 of file test_main.cpp.
#define LOW 0 |
Definition at line 7 of file test_main.cpp.
typedef uint8_t byte |
Definition at line 5 of file test_main.cpp.
enum outputType_t : byte |
Enumerator | |
---|---|
DIGITAL_PIN | |
RELAY |
Definition at line 15 of file test_main.cpp.
enum relayState_t : byte |
Enumerator | |
---|---|
RELAY_ON | |
RELAY_OFF |
Definition at line 10 of file test_main.cpp.
int main | ( | ) |
void setUp | ( | void | ) |
Definition at line 73 of file test_main.cpp.
void tearDown | ( | void | ) |
Definition at line 78 of file test_main.cpp.
void test_large_negative_threshold | ( | ) |
Definition at line 165 of file test_main.cpp.
void test_negative_threshold_battery_scenario | ( | ) |
Definition at line 102 of file test_main.cpp.
void test_negative_threshold_edge_cases | ( | ) |
Definition at line 122 of file test_main.cpp.
void test_negative_threshold_import_scenarios | ( | ) |
Definition at line 137 of file test_main.cpp.
void test_normal_positive_threshold | ( | ) |
Definition at line 83 of file test_main.cpp.
void test_state_transitions_with_debug | ( | ) |
Definition at line 177 of file test_main.cpp.
void test_zero_threshold_special_case | ( | ) |
Definition at line 154 of file test_main.cpp.