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

Function PrintFullTestCommentIfPresent

tests/gtest/gtest-all.cc:4575–4589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4573static const char kValueParamLabel[] = "GetParam()";
4574
4575static void PrintFullTestCommentIfPresent(const TestInfo& test_info) {
4576 const char* const type_param = test_info.type_param();
4577 const char* const value_param = test_info.value_param();
4578
4579 if (type_param != nullptr || value_param != nullptr) {
4580 printf(", where ");
4581 if (type_param != nullptr) {
4582 printf("%s = %s", kTypeParamLabel, type_param);
4583 if (value_param != nullptr) printf(" and ");
4584 }
4585 if (value_param != nullptr) {
4586 printf("%s = %s", kValueParamLabel, value_param);
4587 }
4588 }
4589}
4590
4591// This class implements the TestEventListener interface.
4592//

Callers 2

OnTestEndMethod · 0.85
PrintFailedTestsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected