mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 05:16:10 +01:00
Small cleanup in XML reporter
This commit is contained in:
parent
a64ff326bf
commit
e09de7222c
@ -234,26 +234,23 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void XmlReporter::benchmarkEnded(BenchmarkStats<> const& benchmarkStats) {
|
void XmlReporter::benchmarkEnded(BenchmarkStats<> const& benchmarkStats) {
|
||||||
m_xml.startElement("mean")
|
m_xml.scopedElement("mean")
|
||||||
.writeAttribute("value"_sr, benchmarkStats.mean.point.count())
|
.writeAttribute("value"_sr, benchmarkStats.mean.point.count())
|
||||||
.writeAttribute("lowerBound"_sr, benchmarkStats.mean.lower_bound.count())
|
.writeAttribute("lowerBound"_sr, benchmarkStats.mean.lower_bound.count())
|
||||||
.writeAttribute("upperBound"_sr, benchmarkStats.mean.upper_bound.count())
|
.writeAttribute("upperBound"_sr, benchmarkStats.mean.upper_bound.count())
|
||||||
.writeAttribute("ci"_sr, benchmarkStats.mean.confidence_interval);
|
.writeAttribute("ci"_sr, benchmarkStats.mean.confidence_interval);
|
||||||
m_xml.endElement();
|
m_xml.scopedElement("standardDeviation")
|
||||||
m_xml.startElement("standardDeviation")
|
|
||||||
.writeAttribute("value"_sr, benchmarkStats.standardDeviation.point.count())
|
.writeAttribute("value"_sr, benchmarkStats.standardDeviation.point.count())
|
||||||
.writeAttribute("lowerBound"_sr, benchmarkStats.standardDeviation.lower_bound.count())
|
.writeAttribute("lowerBound"_sr, benchmarkStats.standardDeviation.lower_bound.count())
|
||||||
.writeAttribute("upperBound"_sr, benchmarkStats.standardDeviation.upper_bound.count())
|
.writeAttribute("upperBound"_sr, benchmarkStats.standardDeviation.upper_bound.count())
|
||||||
.writeAttribute("ci"_sr, benchmarkStats.standardDeviation.confidence_interval);
|
.writeAttribute("ci"_sr, benchmarkStats.standardDeviation.confidence_interval);
|
||||||
m_xml.endElement();
|
m_xml.scopedElement("outliers")
|
||||||
m_xml.startElement("outliers")
|
|
||||||
.writeAttribute("variance"_sr, benchmarkStats.outlierVariance)
|
.writeAttribute("variance"_sr, benchmarkStats.outlierVariance)
|
||||||
.writeAttribute("lowMild"_sr, benchmarkStats.outliers.low_mild)
|
.writeAttribute("lowMild"_sr, benchmarkStats.outliers.low_mild)
|
||||||
.writeAttribute("lowSevere"_sr, benchmarkStats.outliers.low_severe)
|
.writeAttribute("lowSevere"_sr, benchmarkStats.outliers.low_severe)
|
||||||
.writeAttribute("highMild"_sr, benchmarkStats.outliers.high_mild)
|
.writeAttribute("highMild"_sr, benchmarkStats.outliers.high_mild)
|
||||||
.writeAttribute("highSevere"_sr, benchmarkStats.outliers.high_severe);
|
.writeAttribute("highSevere"_sr, benchmarkStats.outliers.high_severe);
|
||||||
m_xml.endElement();
|
m_xml.endElement();
|
||||||
m_xml.endElement();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void XmlReporter::benchmarkFailed(StringRef error) {
|
void XmlReporter::benchmarkFailed(StringRef error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user