| 12221 | } |
| 12222 | |
| 12223 | bool RunContext::testForMissingAssertions(Counts& assertions) { |
| 12224 | if (assertions.total() != 0) |
| 12225 | return false; |
| 12226 | if (!m_config->warnAboutMissingAssertions()) |
| 12227 | return false; |
| 12228 | if (m_trackerContext.currentTracker().hasChildren()) |
| 12229 | return false; |
| 12230 | m_totals.assertions.failed++; |
| 12231 | assertions.failed++; |
| 12232 | return true; |
| 12233 | } |
| 12234 | |
| 12235 | void RunContext::sectionEnded(SectionEndInfo const & endInfo) { |
| 12236 | Counts assertions = m_totals.assertions - endInfo.prevAssertions; |
nothing calls this directly
no test coverage detected