Template Function controller_interface::cleanup_succeeds
Defined in File test_utils.hpp
Function Documentation
-
template<typename T>
bool controller_interface::cleanup_succeeds(const std::unique_ptr<T> &controller) Triggers the controller’s cleanup transition and checks success.
- Parameters:
controller – The controller to test
- Throws:
std::runtime_error – if the controller transitions to an unexpected state
- Returns:
true if the controller successfully transitions to the expected state, false if it fails to