MCPcopy Create free account
hub / github.com/RenderKit/embree / assertionEnded

Method assertionEnded

tutorials/external/catch.hpp:5268–5279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5266 void assertionStarting(AssertionInfo const&) override {}
5267
5268 bool assertionEnded(AssertionStats const& assertionStats) override {
5269 assert(!m_sectionStack.empty());
5270 // AssertionResult holds a pointer to a temporary DecomposedExpression,
5271 // which getExpandedExpression() calls to build the expression string.
5272 // Our section stack copy of the assertionResult will likely outlive the
5273 // temporary, so it must be expanded or discarded now to avoid calling
5274 // a destroyed object later.
5275 prepareExpandedExpression(const_cast<AssertionResult&>( assertionStats.assertionResult ) );
5276 SectionNode& sectionNode = *m_sectionStack.back();
5277 sectionNode.assertions.push_back(assertionStats);
5278 return true;
5279 }
5280 void sectionEnded(SectionStats const& sectionStats) override {
5281 assert(!m_sectionStack.empty());
5282 SectionNode& node = *m_sectionStack.back();

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected