API
 
Loading...
Searching...
No Matches
flowRPM_test.cpp File Reference

Catch2 tests for the flowRPM app. More...

#include "../../../tests/testXWC.hpp"
#include <filesystem>
#include "../flowRPM.hpp"
Include dependency graph for flowRPM_test.cpp:

Go to the source code of this file.

Namespaces

namespace  libXWCTest
 Namespace for all libXWC tests.
 
namespace  libXWCTest::flowRPMTest
 Namespace for flowRPM unit tests.
 

Macros

#define protected   public
 

Functions

 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM configuration defaults load correctly", "[flowRPM]")
 Verify default flowRPM configuration values are loaded.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM configuration overrides load correctly", "[flowRPM]")
 Verify configured flowRPM overrides are loaded.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM loadConfig sets shutdown on configuration failure", "[flowRPM]")
 Verify loadConfig() requests shutdown when configuration loading fails.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM helper token parsing handles whitespace-only input", "[flowRPM]")
 Verify trimToken() removes surrounding whitespace and handles blank tokens.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM helper logical-line splitting handles CRLF and blank lines", "[flowRPM]")
 Verify splitLogicalLines() removes CRLF suffixes and ignores blank lines.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM parseResult defaults to the invalid sentinel state", "[flowRPM]")
 Verify the default-initialized parseResult sentinel state.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM timestamp parsing covers valid and malformed inputs", "[flowRPM]")
 Verify parseTimestamp() accepts valid input and rejects malformed timestamps.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM record-line parsing covers all parse branches", "[flowRPM]")
 Verify parseRecordLine() covers the accepted and rejected record formats.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM file parsing", "[flowRPM]")
 Verify parseFileContents() handles valid, invalid, and stale two-line inputs.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM reads and parses configured files", "[flowRPM]")
 Verify readAndParse() reads through the configured path and handles missing files.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM appStartup initializes state and published status", "[flowRPM]")
 Verify appStartup() initializes the published state and transitions to READY.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM appShutdown completes cleanly", "[flowRPM]")
 Verify appShutdown() completes cleanly.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM log backoff is per error key and interval", "[flowRPM]")
 Verify repeated error logging is rate-limited per status key.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM recordTelem forces telemetry bookkeeping refresh", "[flowRPM]")
 Verify recordTelem() forces the telemeter bookkeeping update.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM appLogic drives end-to-end display-state updates", "[flowRPM]")
 Verify appLogic() executes the nominal runtime control flow.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM appLogic returns errors when internal steps fail", "[flowRPM]")
 Verify appLogic() returns errors when internal runtime steps fail.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM display-state reconciliation", "[flowRPM]")
 Verify reconcileResult() and publishResult() manage held and invalid display state.
 
 libXWCTest::flowRPMTest::TEST_CASE ("flowRPM statusKey maps parse statuses consistently", "[flowRPM]")
 Verify statusKey() maps every parser status to a stable log key.
 

Detailed Description

Catch2 tests for the flowRPM app.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

Definition in file flowRPM_test.cpp.

Macro Definition Documentation

◆ protected

#define protected   public

Definition at line 12 of file flowRPM_test.cpp.