MCPcopy Create free account
hub / github.com/fmtlib/fmt / exception_test

Function exception_test

test/std-test.cc:352–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352template <typename Catch> void exception_test() {
353 try {
354 throw std::runtime_error("Test Exception");
355 } catch (const Catch& ex) {
356 EXPECT_EQ("Test Exception", fmt::format("{}", ex));
357 EXPECT_EQ("std::runtime_error: Test Exception", fmt::format("{:t}", ex));
358 }
359}
360
361namespace my_ns1 {
362namespace my_ns2 {

Callers

nothing calls this directly

Calls 1

formatFunction · 0.70

Tested by

no test coverage detected