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

Method OutputXmlTestProperties

tests/gtest/gtest-all.cc:5404–5422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5402}
5403
5404void XmlUnitTestResultPrinter::OutputXmlTestProperties(
5405 std::ostream* stream, const TestResult& result) {
5406 const std::string kProperties = "properties";
5407 const std::string kProperty = "property";
5408
5409 if (result.test_property_count() <= 0) {
5410 return;
5411 }
5412
5413 *stream << "<" << kProperties << ">\n";
5414 for (int i = 0; i < result.test_property_count(); ++i) {
5415 const TestProperty& property = result.GetTestProperty(i);
5416 *stream << "<" << kProperty;
5417 *stream << " name=\"" << EscapeXmlAttribute(property.key()) << "\"";
5418 *stream << " value=\"" << EscapeXmlAttribute(property.value()) << "\"";
5419 *stream << "/>\n";
5420 }
5421 *stream << "</" << kProperties << ">\n";
5422}
5423
5424// End XmlUnitTestResultPrinter
5425

Callers

nothing calls this directly

Calls 3

test_property_countMethod · 0.80
keyMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected