Template Function controller_interface::activate_succeeds

Function Documentation

template<typename T>
bool controller_interface::activate_succeeds(const std::unique_ptr<T> &controller)

Triggers the controller’s activate 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