MCPcopy Create free account
hub / github.com/Profactor/cv-plot / getContents

Method getContents

CvPlot/ext/catch2/inc/catch.hpp:11985–11993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11983 }
11984
11985 std::string TempFile::getContents() {
11986 std::stringstream sstr;
11987 char buffer[100] = {};
11988 std::rewind(m_file);
11989 while (std::fgets(buffer, sizeof(buffer), m_file)) {
11990 sstr << buffer;
11991 }
11992 return sstr.str();
11993 }
11994
11995 OutputRedirect::OutputRedirect(std::string& stdout_dest, std::string& stderr_dest) :
11996 m_originalStdout(dup(1)),

Callers 1

~OutputRedirectMethod · 0.80

Calls 1

strMethod · 0.80

Tested by

no test coverage detected