3-phase PV router
Loading...
Searching...
No Matches
test_main.cpp File Reference
#include <Arduino.h>
#include <ArduinoJson.h>
#include <unity.h>
#include "../halt_after_tests.h"
#include "serial_output.h"
#include "teleinfo.h"
Include dependency graph for test_main.cpp:

Go to the source code of this file.

Classes

class  CapturePrint
 A Print that captures the text, with a transmit buffer that fills up as it is written. More...
 
struct  FrameSource
 The data of a small IoT frame: P, P1, V1, P2, V2, P3, V3, D1, T1, N, S, S_MC (3 phases, no relay). More...
 

Functions

void assertCaptured (PGM_P expected)
 
bool fieldsStep (Print &out, uint8_t step)
 
bool frameStep (Print &out, uint8_t step)
 
void loop ()
 
void setUp (void)
 
void setup ()
 
void tearDown (void)
 
void test_poll_never_overfills_and_completes (void)
 
void test_poll_waits_for_room (void)
 
void test_printDecimals_matches_print_float (void)
 
void test_printDecimals_other_decimals_and_extremes (void)
 
void test_printHundredths_extremes (void)
 
void test_printHundredths_matches_arduinojson (void)
 
void test_start_while_busy_is_refused (void)
 
void test_startup_text_serial_settings ()
 The startup text at 8N1, then 7E1 for the IoT output only (UART0 frame format in UCSR0C)
 
void test_teleinfo_written_in_parts (void)
 
void test_toDecimals_at_compile_time (void)
 

Variables

CapturePrint capture
 

Function Documentation

◆ assertCaptured()

void assertCaptured ( PGM_P expected)

Definition at line 187 of file test_main.cpp.

Here is the caller graph for this function:

◆ fieldsStep()

bool fieldsStep ( Print & out,
uint8_t step )

Definition at line 52 of file test_main.cpp.

Here is the caller graph for this function:

◆ frameStep()

bool frameStep ( Print & out,
uint8_t step )

Definition at line 292 of file test_main.cpp.

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

◆ loop()

void loop ( )

Definition at line 376 of file test_main.cpp.

◆ setUp()

void setUp ( void )

Definition at line 65 of file test_main.cpp.

◆ setup()

void setup ( )

Definition at line 355 of file test_main.cpp.

Here is the call graph for this function:

◆ tearDown()

void tearDown ( void )

Definition at line 71 of file test_main.cpp.

◆ test_poll_never_overfills_and_completes()

void test_poll_never_overfills_and_completes ( void )

Definition at line 86 of file test_main.cpp.

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

◆ test_poll_waits_for_room()

void test_poll_waits_for_room ( void )

Definition at line 75 of file test_main.cpp.

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

◆ test_printDecimals_matches_print_float()

void test_printDecimals_matches_print_float ( void )

Definition at line 162 of file test_main.cpp.

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

◆ test_printDecimals_other_decimals_and_extremes()

void test_printDecimals_other_decimals_and_extremes ( void )

Definition at line 194 of file test_main.cpp.

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

◆ test_printHundredths_extremes()

void test_printHundredths_extremes ( void )

Definition at line 147 of file test_main.cpp.

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

◆ test_printHundredths_matches_arduinojson()

void test_printHundredths_matches_arduinojson ( void )

Definition at line 115 of file test_main.cpp.

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

◆ test_start_while_busy_is_refused()

void test_start_while_busy_is_refused ( void )

Definition at line 107 of file test_main.cpp.

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

◆ test_startup_text_serial_settings()

void test_startup_text_serial_settings ( )

The startup text at 8N1, then 7E1 for the IoT output only (UART0 frame format in UCSR0C)

Definition at line 337 of file test_main.cpp.

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

◆ test_teleinfo_written_in_parts()

void test_teleinfo_written_in_parts ( void )

Definition at line 303 of file test_main.cpp.

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

◆ test_toDecimals_at_compile_time()

void test_toDecimals_at_compile_time ( void )

Definition at line 217 of file test_main.cpp.

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

Variable Documentation

◆ capture

CapturePrint capture

Definition at line 49 of file test_main.cpp.