MCPcopy Create free account
hub / github.com/catchorg/Catch2 / hasMessage

Method hasMessage

extras/catch_amalgamated.cpp:669–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667 }
668
669 bool AssertionResult::hasMessage() const {
670 return !m_resultData.message.empty();
671 }
672
673 std::string AssertionResult::getExpression() const {
674 // Possibly overallocating by 3 characters should be basically free

Callers 3

printFunction · 0.45
AssertionStatsMethod · 0.45
writeAssertionMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected