MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / assertionEnded

Method assertionEnded

test/expected/catch.hpp:5839–5850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5837 void assertionStarting(AssertionInfo const&) override {}
5838
5839 bool assertionEnded(AssertionStats const& assertionStats) override {
5840 assert(!m_sectionStack.empty());
5841 // AssertionResult holds a pointer to a temporary DecomposedExpression,
5842 // which getExpandedExpression() calls to build the expression string.
5843 // Our section stack copy of the assertionResult will likely outlive the
5844 // temporary, so it must be expanded or discarded now to avoid calling
5845 // a destroyed object later.
5846 prepareExpandedExpression(const_cast<AssertionResult&>( assertionStats.assertionResult ) );
5847 SectionNode& sectionNode = *m_sectionStack.back();
5848 sectionNode.assertions.push_back(assertionStats);
5849 return true;
5850 }
5851 void sectionEnded(SectionStats const& sectionStats) override {
5852 assert(!m_sectionStack.empty());
5853 SectionNode& node = *m_sectionStack.back();

Callers

nothing calls this directly

Calls 3

backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected