MCPcopy Create free account
hub / github.com/cpputest/cpputest / failTest

Method failTest

src/CppUTestExt/MockFailure.cpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55};
56
57void MockFailureReporter::failTest(const MockFailure& failure)
58{
59 if (!getTestToFail()->hasFailed())
60 getTestToFail()->failWith(failure, MockFailureReporterTestTerminator(crashOnFailure_));
61} // LCOV_EXCL_LINE
62
63UtestShell* MockFailureReporter::getTestToFail()
64{

Callers

nothing calls this directly

Calls 3

failWithMethod · 0.80
hasFailedMethod · 0.45

Tested by

no test coverage detected