MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / OnTestPartResult

Method OnTestPartResult

tests/gtest/gtest-all.cc:4685–4699  ·  view source on GitHub ↗

Called after an assertion failure.

Source from the content-addressed store, hash-verified

4683
4684// Called after an assertion failure.
4685void PrettyUnitTestResultPrinter::OnTestPartResult(
4686 const TestPartResult& result) {
4687 switch (result.type()) {
4688 // If the test part succeeded, or was skipped,
4689 // we don't need to do anything.
4690 case TestPartResult::kSkip:
4691 case TestPartResult::kSuccess:
4692 return;
4693 default:
4694 // Print failure message from the assertion
4695 // (e.g. expected this and got that).
4696 PrintTestPartResult(result);
4697 fflush(stdout);
4698 }
4699}
4700
4701void PrettyUnitTestResultPrinter::OnTestEnd(const TestInfo& test_info) {
4702 if (test_info.result()->Passed()) {

Callers 1

ReportTestPartResultMethod · 0.45

Calls 1

PrintTestPartResultFunction · 0.85

Tested by

no test coverage detected