Adds beginnings of BlogPageBuilder and associated classes
This commit is contained in:
parent
65aefe46ce
commit
1506f661c9
114 changed files with 4740 additions and 518 deletions
28
Tests/TestFileReaderUtil.h
Normal file
28
Tests/TestFileReaderUtil.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
|
||||
class TestFileReaderUtil
|
||||
{
|
||||
public:
|
||||
static std::string readFile(std::string fileUrl)
|
||||
{
|
||||
std::ifstream file(fileUrl);
|
||||
std::stringstream fileCache;
|
||||
fileCache << file.rdbuf();
|
||||
|
||||
if (file.fail())
|
||||
{
|
||||
UNSCOPED_INFO("WARNING: File read failed");
|
||||
UNSCOPED_INFO("fileUrl: " + fileUrl);
|
||||
}
|
||||
|
||||
return fileCache.str();
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue