MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / launchCommand

Function launchCommand

tests/autotester/autotester.cpp:316–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314};
315
316bool launchCommand(const std::pair<std::string, std::string>& command)
317{
318 const auto& func_it = valid_seq_commands.find(command.first);
319 if (func_it != valid_seq_commands.end()) {
320 (func_it->second)(command.second);
321 } else {
322 std::cerr << "\t[Error] invalid command \"" << command.first << "\"" << std::endl;
323 return false;
324 }
325 return true;
326}
327
328/****** Utility functions ******/
329inline bool file_exists(const std::string& name);

Callers 1

doTestSequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected