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

Method fail

src/CppUTest/MemoryLeakWarningPlugin.cpp:525–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523 }
524
525 virtual void fail(char* fail_string) _override
526 {
527 UtestShell* currentTest = UtestShell::getCurrent();
528 currentTest->failWith(FailFailure(currentTest, currentTest->getName().asCharString(), currentTest->getLineNumber(), fail_string), TestTerminatorWithoutExceptions());
529 } // LCOV_EXCL_LINE
530};
531
532static MemoryLeakFailure* globalReporter = NULLPTR;

Callers

nothing calls this directly

Calls 6

FailFailureClass · 0.85
failWithMethod · 0.80
asCharStringMethod · 0.80
getLineNumberMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected