MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / testCaseEnded

Method testCaseEnded

unittests/catch.hpp:3940–3950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3938 m_sectionStack.pop_back();
3939 }
3940 void testCaseEnded(TestCaseStats const& testCaseStats) override {
3941 auto node = std::make_shared<TestCaseNode>(testCaseStats);
3942 assert(m_sectionStack.size() == 0);
3943 node->children.push_back(m_rootSection);
3944 m_testCases.push_back(node);
3945 m_rootSection.reset();
3946
3947 assert(m_deepestSection);
3948 m_deepestSection->stdOut = testCaseStats.stdOut;
3949 m_deepestSection->stdErr = testCaseStats.stdErr;
3950 }
3951 void testGroupEnded(TestGroupStats const& testGroupStats) override {
3952 auto node = std::make_shared<TestGroupNode>(testGroupStats);
3953 node->children.swap(m_testCases);

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected