| 5402 | } |
| 5403 | |
| 5404 | void 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 |
nothing calls this directly
no test coverage detected