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

Method format

ApprovalTests/core/ApprovalException.cpp:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 }
15
16 std::string ApprovalMismatchException::format(const std::string& received,
17 const std::string& approved)
18 {
19 std::stringstream s;
20 s << "Failed Approval: \n"
21 << "Received does not match approved \n"
22 << "Received : \"" << received << "\" \n"
23 << "Approved : \"" << approved << "\"";
24 return s.str();
25 }
26
27 ApprovalMismatchException::ApprovalMismatchException(const std::string& received,
28 const std::string& approved)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected