MCPcopy Create free account
hub / github.com/ByConity/ByConity / TEST

Function TEST

src/Common/tests/gtest_shell_command.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18TEST(ShellCommand, Execute)
19{
20 auto command = ShellCommand::execute("echo 'Hello, world!'");
21
22 std::string res;
23 readStringUntilEOF(res, command->out);
24 command->wait();
25
26 EXPECT_EQ(res, "Hello, world!\n");
27}
28
29TEST(ShellCommand, ExecuteDirect)
30{

Callers

nothing calls this directly

Calls 6

readStringUntilEOFFunction · 0.85
executeFunction · 0.50
copyDataFunction · 0.50
to_stringFunction · 0.50
waitMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected