MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / OnTestPartResult

Method OnTestPartResult

rtpose_wrapper/src/gtest/gtest-all.cpp:4082–4091  ·  view source on GitHub ↗

Called after an assertion failure.

Source from the content-addressed store, hash-verified

4080
4081// Called after an assertion failure.
4082void PrettyUnitTestResultPrinter::OnTestPartResult(
4083 const TestPartResult& result) {
4084 // If the test part succeeded, we don't need to do anything.
4085 if (result.type() == TestPartResult::kSuccess)
4086 return;
4087
4088 // Print failure message from the assertion (e.g. expected this and got that).
4089 PrintTestPartResult(result);
4090 fflush(stdout);
4091}
4092
4093void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
4094 if (test_info.result()->Passed()) {

Callers 1

ReportTestPartResultMethod · 0.45

Calls 2

PrintTestPartResultFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected