MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / handle_command

Method handle_command

app/plugins/start_test/start_test.cpp:30–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool 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

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
sizeMethod · 0.80
request_applicationMethod · 0.80

Tested by

no test coverage detected