ifw-slm 0.1.2
 
Loading...
Searching...
No Matches
testActionsRunning.cpp File Reference

Unit tests for the ActionsRunning class. More...

#include <ifw/slm/framework/actionsRunning.hpp>
#include <ifw/slm/framework/actionMgr.hpp>
#include <ifw/slm/framework/dataContext.hpp>
#include <ifw/slm/framework/config.hpp>
#include <rad/application.hpp>
#include <gtest/gtest.h>

Classes

class  ifw::slm::TestActionsRunning
 Test fixture for ActionsRunning. More...
 

Namespaces

namespace  ifw
 
namespace  ifw::slm
 

Functions

 ifw::slm::TEST_F (TestActionsRunning, GroupHasExpectedId)
 The action group reports the expected id.
 
 ifw::slm::TEST_F (TestActionsRunning, CompleteIsCallable)
 Complete() (Running onentry hook) runs without throwing.
 
 ifw::slm::TEST_F (TestActionsRunning, AbortResetsLoopsWithoutThrowing)
 Abort() (Running onexit hook) resets all enabled loops without throwing, exercising ResetAllLoopStates over the configured loops.
 

Detailed Description

Unit tests for the ActionsRunning class.

ActionsRunning provides the onentry/onexit hooks for the Running parallel state. Complete() is the entry hook (reserved no-op) and Abort() is the exit hook, which calls ResetAllLoopStates() so every enabled loop reports OPEN again when the SLM leaves Running (StopSlm / Disable / RunningError).