Adds beginnings of BlogPageBuilder and associated classes

This commit is contained in:
Rosia E Evans 2023-09-20 09:09:51 +01:00
parent 65aefe46ce
commit 1506f661c9
114 changed files with 4740 additions and 518 deletions

View 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();
}
};