MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / TestCommand

Method TestCommand

Src/ChannelLinter/ChannelLinter.cpp:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238
239 void ChannelLinter::TestCommand(std::shared_ptr<MockDeviceBridge> const& channel)
240 {
241 assert(m_Config.m_Command);
242 std::cout << "Executing command ... " << std::flush;
243 auto binaryCommand = TranslateCommand(*m_Config.m_Command);
244 channel->RunCommand(binaryCommand);
245 std::cout << "OK" << std::endl;
246 }
247
248 FSecure::ByteVector ChannelLinter::TranslateCommand(StringVector const& commandParams)
249 {

Callers

nothing calls this directly

Calls 1

RunCommandMethod · 0.45

Tested by

no test coverage detected