MCPcopy Create free account
hub / github.com/apache/trafficserver / assertionEnded

Method assertionEnded

lib/catch2/catch.hpp:5905–5916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5903 void assertionStarting(AssertionInfo const&) override {}
5904
5905 bool assertionEnded(AssertionStats const& assertionStats) override {
5906 assert(!m_sectionStack.empty());
5907 // AssertionResult holds a pointer to a temporary DecomposedExpression,
5908 // which getExpandedExpression() calls to build the expression string.
5909 // Our section stack copy of the assertionResult will likely outlive the
5910 // temporary, so it must be expanded or discarded now to avoid calling
5911 // a destroyed object later.
5912 prepareExpandedExpression(const_cast<AssertionResult&>( assertionStats.assertionResult ) );
5913 SectionNode& sectionNode = *m_sectionStack.back();
5914 sectionNode.assertions.push_back(assertionStats);
5915 return true;
5916 }
5917 void sectionEnded(SectionStats const& sectionStats) override {
5918 assert(!m_sectionStack.empty());
5919 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