API
 
Loading...
Searching...
No Matches
stateRuleEngine Unit Tests

Unit tests for the stateRuleEngine application. More...

Collaboration diagram for stateRuleEngine Unit Tests:

Namespaces

namespace  libXWCTest::stateRuleEngineTest
 Namespace for stateRuleEngine unit tests.
 

Functions

 libXWCTest::stateRuleEngineTest::TEST_CASE ("stateRuleEngine placeholder harness instantiates the app", "[stateRuleEngine]")
 Verify the placeholder stateRuleEngine test harness instantiates the app cleanly.
 
 libXWCTest::stateRuleEngineTest::TEST_CASE ("stateRuleEngine notification helpers format active and clear messages", "[stateRuleEngine]")
 Verify notification helpers preserve active severity labels and clear formatting.
 
 libXWCTest::stateRuleEngineTest::TEST_CASE ("stateRuleEngine published-state helpers select properties and detect On state", "[stateRuleEngine]")
 Verify the published-state helpers select the right property and detect switch state.
 
 libXWCTest::stateRuleEngineTest::TEST_CASE ("stateRuleEngine appLogic reports one clear notification per observed On-to-Off transition", "[stateRuleEngine]")
 Verify appLogic() emits one clear notification for an observed On -> Off transition.
 

Detailed Description

Unit tests for the stateRuleEngine application.

Additional unit tests for the stateRuleEngine application.

Function Documentation

◆ TEST_CASE() [1/4]

libXWCTest::stateRuleEngineTest::TEST_CASE ( "stateRuleEngine appLogic reports one clear notification per observed On-to-Off transition"  ,
""  [stateRuleEngine] 
)

Verify appLogic() emits one clear notification for an observed On -> Off transition.

Definition at line 252 of file stateRuleEngine_test.cpp.

References MagAOX::app::stateRuleEngine::appLogic(), indiCompRule::message(), indiCompRule::messageCount(), indiCompRule::priority(), and warning.

◆ TEST_CASE() [2/4]

libXWCTest::stateRuleEngineTest::TEST_CASE ( "stateRuleEngine notification helpers format active and clear messages"  ,
""  [stateRuleEngine] 
)

Verify notification helpers preserve active severity labels and clear formatting.

Definition at line 175 of file stateRuleEngine_test.cpp.

References info, MagAOX::app::stateRuleEngine::notificationLabel(), MagAOX::app::stateRuleEngine::notificationMessage(), and warning.

◆ TEST_CASE() [3/4]

libXWCTest::stateRuleEngineTest::TEST_CASE ( "stateRuleEngine placeholder harness instantiates the app"  ,
""  [stateRuleEngine] 
)

Verify the placeholder stateRuleEngine test harness instantiates the app cleanly.

Definition at line 155 of file stateRuleEngine_test.cpp.

◆ TEST_CASE() [4/4]

libXWCTest::stateRuleEngineTest::TEST_CASE ( "stateRuleEngine published-state helpers select properties and detect On state"  ,
""  [stateRuleEngine] 
)

Verify the published-state helpers select the right property and detect switch state.

Definition at line 216 of file stateRuleEngine_test.cpp.

References alert, caution, info, none, MagAOX::app::stateRuleEngine::ruleIsOn(), MagAOX::app::stateRuleEngine::ruleStateProperty(), and warning.