Namespace for stateRuleEngine unit tests.
More...
Functions | |
| SCENARIO ("configuring basic rules", "[stateRuleEngine::ruleConfig]") | |
| SCENARIO ("configuring the demo", "[stateRuleEngine::ruleConfig]") | |
| SCENARIO ("rule configurations with errors", "[stateRuleEngine::ruleConfig]") | |
| SCENARIO ("basic INDI Property Element-value rules", "[stateRuleEngine::rules]") | |
| SCENARIO ("multiSwitchCombo rule evaluation", "[stateRuleEngine::rules]") | |
| TEST_CASE ("stateRuleEngine placeholder harness instantiates the app", "[stateRuleEngine]") | |
| Verify the placeholder stateRuleEngine test harness instantiates the app cleanly. | |
| TEST_CASE ("stateRuleEngine notification helpers format active and clear messages", "[stateRuleEngine]") | |
| Verify notification helpers preserve active severity labels and clear formatting. | |
| 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. | |
| 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. | |
Namespace for stateRuleEngine unit tests.
| libXWCTest::stateRuleEngineTest::SCENARIO | ( | "basic INDI Property Element-value rules" | , |
| "" | [stateRuleEngine::rules] | ||
| ) |
Definition at line 27 of file indiCompRules_test.cpp.
References indiCompRule::comparison(), onePropRule::element(), Eq, Gt, GtEq, Lt, LtEq, Neq, onePropRule::property(), numValRule::target(), timeDiffRule::target(), swValRule::target(), txtValRule::target(), numValRule::tol(), numValRule::value(), txtValRule::value(), swValRule::value(), timeDiffRule::value(), and multiSwitchComboRule::value().
| libXWCTest::stateRuleEngineTest::SCENARIO | ( | "configuring basic rules" | , |
| "" | [stateRuleEngine::ruleConfig] | ||
| ) |
Definition at line 27 of file indiCompRuleConfig_test.cpp.
References alert, And, onePropRule::element(), twoPropRule::element1(), twoPropRule::element2(), Eq, finalizeRuleValRules(), multiSwitchComboRule::format(), GtEq, info, loadRuleConfig(), Neq, none, multiSwitchComboRule::numSwitches(), onePropRule::property(), multiSwitchComboRule::property(), twoPropRule::property1(), twoPropRule::property2(), multiSwitchComboRule::propertyKey(), indiRuleMaps::props, ruleCompRule::rule1(), ruleCompRule::rule2(), multiSwitchComboRule::ruleName(), indiRuleMaps::rules, numValRule::target(), swValRule::target(), txtValRule::target(), multiSwitchComboRule::targetProperty(), multiSwitchComboRule::targetPropertyKey(), numValRule::tol(), and warning.
| libXWCTest::stateRuleEngineTest::SCENARIO | ( | "configuring the demo" | , |
| "" | [stateRuleEngine::ruleConfig] | ||
| ) |
Definition at line 375 of file indiCompRuleConfig_test.cpp.
References finalizeRuleValRules(), loadRuleConfig(), ruleCompRule::rule1(), ruleCompRule::rule2(), and indiRuleMaps::rules.
| libXWCTest::stateRuleEngineTest::SCENARIO | ( | "multiSwitchCombo rule evaluation" | , |
| "" | [stateRuleEngine::rules] | ||
| ) |
Definition at line 322 of file indiCompRules_test.cpp.
References And, indiCompRule::comparison(), onePropRule::element(), Eq, multiSwitchComboRule::format(), Neq, multiSwitchComboRule::popRuntimeDiagnostic(), ruleCompRule::popRuntimeDiagnostic(), onePropRule::property(), multiSwitchComboRule::property(), ruleCompRule::rule1(), ruleCompRule::rule2(), multiSwitchComboRule::ruleName(), txtValRule::target(), multiSwitchComboRule::targetProperty(), multiSwitchComboRule::targetPropertyKey(), multiSwitchComboRule::value(), and ruleCompRule::value().
| libXWCTest::stateRuleEngineTest::SCENARIO | ( | "rule configurations with errors" | , |
| "" | [stateRuleEngine::ruleConfig] | ||
| ) |
Definition at line 439 of file indiCompRuleConfig_test.cpp.
References finalizeRuleValRules(), and loadRuleConfig().