hemocell
Loading...
Searching...
No Matches
Namespaces | Functions
test_support.h File Reference
#include "gtest/gtest.h"
#include "parallelism/mpiManager.h"
#include <filesystem>
#include <fstream>
#include <functional>
#include <sstream>
#include <string>
Include dependency graph for test_support.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hemo_test
 

Functions

std::string & hemo_test::outputRoot ()
 
std::string hemo_test::testConfig (const std::string &path, const std::function< void(std::string &)> &edit=nullptr)
 A copy of the configuration file path whose output directory lies in outputRoot(), so that the tests do not write into the repository.
 
void hemo_test::replaceOnce (std::string &text, const std::string &from, const std::string &to)
 Replace the first from in text by to (a failed expectation if absent).