Skip to content
Snippets Groups Projects
Commit a01dd354 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

Make NamedTempFile::peep() a public member for debugging unit tests.

parent b6a08ad0
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,16 @@ class NamedTempFile
std::string getName() const { return mPath; }
void peep()
{
std::cout << "File '" << mPath << "' contains:\n";
std::ifstream reader(mPath.c_str());
std::string line;
while (std::getline(reader, line))
std::cout << line << '\n';
std::cout << "---\n";
}
private:
void createFile(const std::string& pfx, const Streamer& func)
{
......@@ -96,16 +106,6 @@ class NamedTempFile
llassert_always(writelen == data.length());
}
void peep()
{
std::cout << "File '" << mPath << "' contains:\n";
std::ifstream reader(mPath.c_str());
std::string line;
while (std::getline(reader, line))
std::cout << line << '\n';
std::cout << "---\n";
}
std::string mPath;
apr_pool_t* mPool;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment