MCPcopy Create free account
hub / github.com/El-EnderJ/NeoCalculator / readTextFile

Function readTextFile

tests/MathEnginePhaseRegression.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 if (!condition) {
23 std::cerr << "FAIL: " << name << "\n";
24 ++failures;
25 }
26}
27
28static void check(bool condition, const std::string& name) {
29 check(condition, name.c_str());
30}
31
32static std::string readTextFile(const char* path) {
33 std::ifstream in(path);
34 if (!in) return {};
35
36 std::string out;
37 std::string line;
38 while (std::getline(in, line)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected