@@ -130,7 +130,7 @@ struct TestSuites {
130
130
ss << std::format (R"( <testsuites name="{}" tests="{}" failures="{}" time="{:f}" timestamp="{}">)" , name, tests,
131
131
failures, time.count (), timestamp_str);
132
132
ss << std::endl;
133
- for (const auto & suite : suites) {
133
+ for (const TestSuite & suite : suites) {
134
134
ss << suite.to_xml () << std::endl;
135
135
}
136
136
ss << " </testsuites>" << std::endl;
@@ -148,10 +148,10 @@ class JUnitXML : public BaseFormatter {
148
148
149
149
~JUnitXML () {
150
150
test_suites.tests =
151
- std::accumulate (test_suites.suites .begin (), test_suites.suites .end (), 0 ,
151
+ std::accumulate (test_suites.suites .begin (), test_suites.suites .end (), size_t { 0 } ,
152
152
[](size_t sum, const JUnitNodes::TestSuite& suite) { return sum + suite.tests ; });
153
153
test_suites.failures =
154
- std::accumulate (test_suites.suites .begin (), test_suites.suites .end (), 0 ,
154
+ std::accumulate (test_suites.suites .begin (), test_suites.suites .end (), size_t { 0 } ,
155
155
[](size_t sum, const JUnitNodes::TestSuite& suite) { return sum + suite.failures ; });
156
156
test_suites.time = std::ranges::fold_left (test_suites.suites , std::chrono::duration<double >(0 ),
157
157
[](const auto & acc, const auto & suite) { return acc + suite.time ; });
@@ -181,7 +181,7 @@ class JUnitXML : public BaseFormatter {
181
181
std::forward_list<std::string> descriptions;
182
182
183
183
descriptions.push_front (it.get_description ());
184
- for (const auto * parent = it.get_parent_as <Description>(); parent->has_parent ();
184
+ for (const Description * parent = it.get_parent_as <Description>(); parent->has_parent ();
185
185
parent = parent->get_parent_as <Description>()) {
186
186
descriptions.push_front (parent->get_description ());
187
187
}
@@ -198,7 +198,7 @@ class JUnitXML : public BaseFormatter {
198
198
.line = it.get_location ().line (),
199
199
};
200
200
201
- for (const auto & result : it.get_results ()) {
201
+ for (const Result & result : it.get_results ()) {
202
202
if (result.is_success ()) {
203
203
continue ;
204
204
}
0 commit comments