MCPcopy Create free account
hub / github.com/doctest/doctest / intTranslator

Function intTranslator

examples/all_features/stringification.cpp:260–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260static doctest::String intTranslator(int ex) {
261 return doctest::String("int: ") + doctest::toString(ex);
262}
263
264TEST_CASE("a test case that registers an exception translator for int and then throws one") {
265 // set an exception translator for int - note that this shouldn't be done in a test case but

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.70
StringFunction · 0.50

Tested by

no test coverage detected