Produces a string representing the test properties in a result as space delimited XML attributes based on the property key="value" pairs.
| 5391 | // Produces a string representing the test properties in a result as space |
| 5392 | // delimited XML attributes based on the property key="value" pairs. |
| 5393 | std::string XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes( |
| 5394 | const TestResult& result) { |
| 5395 | Message attributes; |
| 5396 | for (int i = 0; i < result.test_property_count(); ++i) { |
| 5397 | const TestProperty& property = result.GetTestProperty(i); |
| 5398 | attributes << " " << property.key() << "=" |
| 5399 | << "\"" << EscapeXmlAttribute(property.value()) << "\""; |
| 5400 | } |
| 5401 | return attributes.GetString(); |
| 5402 | } |
| 5403 | |
| 5404 | void XmlUnitTestResultPrinter::OutputXmlTestProperties( |
| 5405 | std::ostream* stream, const TestResult& result) { |
nothing calls this directly
no test coverage detected