| 28 | } |
| 29 | |
| 30 | bool StartTest::handle_command(std::deque<std::string> &arguments) const |
| 31 | { |
| 32 | assert(!arguments.empty()); |
| 33 | if (arguments[0] == "test") |
| 34 | { |
| 35 | if (arguments.size() < 2) |
| 36 | { |
| 37 | LOGE("Command \"test\" is missing the actual test_id to launch!"); |
| 38 | return false; |
| 39 | } |
| 40 | auto *test = apps::get_app(arguments[1]); |
| 41 | if (!test) |
| 42 | { |
| 43 | LOGE("Command \"test\" is called with an unknown test_id \"{}\"!", arguments[1]); |
| 44 | return false; |
| 45 | } |
| 46 | platform->request_application(test); |
| 47 | |
| 48 | arguments.pop_front(); |
| 49 | arguments.pop_front(); |
| 50 | return true; |
| 51 | } |
| 52 | return false; |
| 53 | } |
| 54 | } // namespace plugins |
nothing calls this directly
no test coverage detected