1-phase PV router
|
Tests for the relay output feature. More...
#include <Arduino.h>
#include <U8g2lib.h>
#include <unity.h>
#include "utils_pins.h"
#include "utils_relay.h"
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 |
Tests for the relay output feature.
Definition in file test_main.cpp.
void loop | ( | ) |
Definition at line 208 of file test_main.cpp.
References test_get_importThreshold(), test_get_minOFF(), test_get_minON(), test_get_pin(), test_get_size(), test_get_surplusThreshold(), test_isRelayON(), test_proceed_relay(), test_relay_initialization(), test_relay_initialization_with_negative_thresholds(), and test_relay_initialization_with_positive_thresholds().
void setUp | ( | void | ) |
void setup | ( | ) |
Definition at line 201 of file test_main.cpp.
void tearDown | ( | void | ) |
Definition at line 34 of file test_main.cpp.
void test_get_importThreshold | ( | void | ) |
Definition at line 93 of file test_main.cpp.
References relays.
Referenced by loop().
void test_get_minOFF | ( | void | ) |
Definition at line 111 of file test_main.cpp.
References relays.
Referenced by loop().
void test_get_minON | ( | void | ) |
Definition at line 102 of file test_main.cpp.
References relays.
Referenced by loop().
void test_get_pin | ( | void | ) |
Definition at line 75 of file test_main.cpp.
References relays.
Referenced by loop().
void test_get_size | ( | void | ) |
Definition at line 196 of file test_main.cpp.
References relays.
Referenced by loop().
void test_get_surplusThreshold | ( | void | ) |
Definition at line 84 of file test_main.cpp.
References relays.
Referenced by loop().
void test_isRelayON | ( | void | ) |
Definition at line 120 of file test_main.cpp.
References relays.
Referenced by loop().
void test_proceed_relay | ( | void | ) |
Definition at line 186 of file test_main.cpp.
References test_relay_turnOFF(), and test_relay_turnON().
Referenced by loop().
void test_relay_initialization | ( | void | ) |
Definition at line 42 of file test_main.cpp.
References relayOutput::get_importThreshold(), relayOutput::get_pin(), and relayOutput::get_surplusThreshold().
Referenced by loop().
void test_relay_initialization_with_negative_thresholds | ( | void | ) |
Definition at line 64 of file test_main.cpp.
References relayOutput::get_importThreshold(), relayOutput::get_pin(), and relayOutput::get_surplusThreshold().
Referenced by loop().
void test_relay_initialization_with_positive_thresholds | ( | void | ) |
Definition at line 53 of file test_main.cpp.
References relayOutput::get_importThreshold(), relayOutput::get_pin(), and relayOutput::get_surplusThreshold().
Referenced by loop().
void test_relay_turnOFF | ( | void | ) |
Definition at line 157 of file test_main.cpp.
References relays.
Referenced by test_proceed_relay().
void test_relay_turnON | ( | void | ) |
Definition at line 128 of file test_main.cpp.
References relays.
Referenced by test_proceed_relay().
|
constexpr |
Definition at line 20 of file test_main.cpp.