MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getContents

Method getContents

extlibs/catch/include/catch/catch.hpp:11641–11649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11639 }
11640
11641 std::string TempFile::getContents() {
11642 std::stringstream sstr;
11643 char buffer[100] = {};
11644 std::rewind(m_file);
11645 while (std::fgets(buffer, sizeof(buffer), m_file)) {
11646 sstr << buffer;
11647 }
11648 return sstr.str();
11649 }
11650
11651 OutputRedirect::OutputRedirect(std::string& stdout_dest, std::string& stderr_dest) :
11652 m_originalStdout(dup(1)),

Callers 1

~OutputRedirectMethod · 0.80

Calls 1

strMethod · 0.45

Tested by

no test coverage detected