MCPcopy Create free account
hub / github.com/approvals/ApprovalTests.cpp / report

Method report

examples/out_of_source/DocTestReporter.cpp:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace ApprovalTests
7{
8 bool DocTestReporter::report(std::string received, std::string approved) const
9 {
10 auto receivedText = FileUtils::readFileThrowIfMissing(received);
11 auto approvedText = FileUtils::readFileThrowIfMissing(approved);
12 CHECK(receivedText == approvedText);
13 return true;
14 }
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected