Format test properties in xml printer

This commit is contained in:
victordk13 2021-08-06 16:19:01 +03:00 committed by GitHub
parent 5b40153003
commit 26f9d55719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4436,15 +4436,15 @@ void XmlUnitTestResultPrinter::OutputXmlTestProperties(
return;
}
*stream << "<" << kProperties << ">\n";
*stream << " <" << kProperties << ">\n";
for (int i = 0; i < result.test_property_count(); ++i) {
const TestProperty& property = result.GetTestProperty(i);
*stream << "<" << kProperty;
*stream << " <" << kProperty;
*stream << " name=\"" << EscapeXmlAttribute(property.key()) << "\"";
*stream << " value=\"" << EscapeXmlAttribute(property.value()) << "\"";
*stream << "/>\n";
}
*stream << "</" << kProperties << ">\n";
*stream << " </" << kProperties << ">\n";
}
// End XmlUnitTestResultPrinter