Unit tests for the zaberLowLevel application. More...

Namespaces | |
| namespace | libXWCTest::zaberLowLevelTest |
Namespace for zaberLowLevel unit tests. | |
Functions | |
| libXWCTest::zaberLowLevelTest::SCENARIO ("INDI Callbacks", "[zaberLowLevel]") | |
| Verify zaberLowLevel callback validation and power-off snapshots preserve stage state. | |
| libXWCTest::zaberLowLevelTest::SCENARIO ("Stage discovery resets stale device addresses", "[zaberLowLevel]") | |
| Verify discovery clears stale addresses and reports missing configured stages safely. | |
| libXWCTest::zaberLowLevelTest::SCENARIO ("Stage discovery can find devices that appear later", "[zaberLowLevel]") | |
| Verify a later discovery pass can find a stage that was missing initially. | |
| libXWCTest::zaberLowLevelTest::SCENARIO ("Recoverable transport errors transition to reconnect states", "[zaberLowLevel]") | |
| Verify communication failures drop the app back into reconnectable states. | |
| libXWCTest::zaberLowLevelTest::SCENARIO ("Classifying decoded device messages", "[zaberStage]") | |
Verify zaberStage classifies replies and decodes warning tokens from ASCII responses. | |
| libXWCTest::zaberLowLevelTest::TEST_CASE ("zaberLowLevel utility helpers parse system.serial responses", "[zaberUtils]") | |
Verify parseSystemSerial() extracts axis addresses and serial numbers from a valid response. | |
| libXWCTest::zaberLowLevelTest::TEST_CASE ("zaberLowLevel utility helpers reject malformed system.serial snapshots", "[zaberUtils]") | |
Verify parseSystemSerial() rejects malformed non-numeric serial tokens. | |
Unit tests for the zaberLowLevel application.
Additional utility tests for the zaberLowLevel application.
Additional unit tests for the zaberLowLevel application.
| libXWCTest::zaberLowLevelTest::SCENARIO | ( | "Classifying decoded device messages" | , |
| "" | [zaberStage] | ||
| ) |
Verify zaberStage classifies replies and decodes warning tokens from ASCII responses.
Definition at line 38 of file zaberStage_test.cpp.
References za_reply::device_address, MagAOX::app::zaberStage< parentT >::deviceAddress(), MagAOX::app::zaberStage< parentT >::isCommandReply(), and MagAOX::app::zaberStage< parentT >::parseWarnings().
| libXWCTest::zaberLowLevelTest::SCENARIO | ( | "INDI Callbacks" | , |
| "" | [zaberLowLevel] | ||
| ) |
Verify zaberLowLevel callback validation and power-off snapshots preserve stage state.
Definition at line 221 of file zaberLowLevel_test.cpp.
References MagAOX::app::zaberLowLevel::onPowerOff(), and XWCTEST_INDI_NEW_CALLBACK.
| libXWCTest::zaberLowLevelTest::SCENARIO | ( | "Recoverable transport errors transition to reconnect states" | , |
| "" | [zaberLowLevel] | ||
| ) |
Verify communication failures drop the app back into reconnectable states.
Definition at line 308 of file zaberLowLevel_test.cpp.
References MagAOX::app::stateCodes::ERROR, MagAOX::app::stateCodes::NODEVICE, MagAOX::app::stateCodes::NOTCONNECTED, MagAOX::app::zaberLowLevel::recoverFromError(), and MagAOX::app::zaberLowLevel::resetConnection().
| libXWCTest::zaberLowLevelTest::SCENARIO | ( | "Stage discovery can find devices that appear later" | , |
| "" | [zaberLowLevel] | ||
| ) |
Verify a later discovery pass can find a stage that was missing initially.
Definition at line 285 of file zaberLowLevel_test.cpp.
References ZC_CONNECTED.
| libXWCTest::zaberLowLevelTest::SCENARIO | ( | "Stage discovery resets stale device addresses" | , |
| "" | [zaberLowLevel] | ||
| ) |
Verify discovery clears stale addresses and reports missing configured stages safely.
Definition at line 261 of file zaberLowLevel_test.cpp.
References MagAOX::app::zaberLowLevel::loadStages(), and ZC_CONNECTED.
| libXWCTest::zaberLowLevelTest::TEST_CASE | ( | "zaberLowLevel utility helpers parse system.serial responses" | , |
| "" | [zaberUtils] | ||
| ) |
Verify parseSystemSerial() extracts axis addresses and serial numbers from a valid response.
Definition at line 33 of file zaberUtils_test.cpp.
References MagAOX::app::parseSystemSerial().
| libXWCTest::zaberLowLevelTest::TEST_CASE | ( | "zaberLowLevel utility helpers reject malformed system.serial snapshots" | , |
| "" | [zaberUtils] | ||
| ) |
Verify parseSystemSerial() rejects malformed non-numeric serial tokens.
Definition at line 60 of file zaberUtils_test.cpp.
References MagAOX::app::parseSystemSerial(), and ZUTILS_E_BADSERIAL.