@@ -14,7 +14,9 @@ use crate::{
1414} ;
1515use camino:: Utf8PathBuf ;
1616use debug_ignore:: DebugIgnore ;
17- use quick_junit:: { NonSuccessKind , Report , TestCase , TestCaseStatus , TestRerun , TestSuite } ;
17+ use quick_junit:: {
18+ NonSuccessKind , Report , TestCase , TestCaseStatus , TestRerun , TestSuite , XmlString ,
19+ } ;
1820use std:: { borrow:: Cow , collections:: HashMap , fs:: File } ;
1921
2022#[ derive( Clone , Debug ) ]
@@ -245,7 +247,7 @@ enum TestcaseOrRerun<'a> {
245247}
246248
247249impl TestcaseOrRerun < ' _ > {
248- fn set_message ( & mut self , message : impl Into < String > ) -> & mut Self {
250+ fn set_message ( & mut self , message : impl Into < XmlString > ) -> & mut Self {
249251 match self {
250252 TestcaseOrRerun :: Testcase ( testcase) => {
251253 testcase. status . set_message ( message. into ( ) ) ;
@@ -257,7 +259,7 @@ impl TestcaseOrRerun<'_> {
257259 self
258260 }
259261
260- fn set_description ( & mut self , description : impl Into < String > ) -> & mut Self {
262+ fn set_description ( & mut self , description : impl Into < XmlString > ) -> & mut Self {
261263 match self {
262264 TestcaseOrRerun :: Testcase ( testcase) => {
263265 testcase. status . set_description ( description. into ( ) ) ;
@@ -269,7 +271,7 @@ impl TestcaseOrRerun<'_> {
269271 self
270272 }
271273
272- fn set_system_out ( & mut self , system_out : impl Into < String > ) -> & mut Self {
274+ fn set_system_out ( & mut self , system_out : impl Into < XmlString > ) -> & mut Self {
273275 match self {
274276 TestcaseOrRerun :: Testcase ( testcase) => {
275277 testcase. set_system_out ( system_out. into ( ) ) ;
@@ -281,7 +283,7 @@ impl TestcaseOrRerun<'_> {
281283 self
282284 }
283285
284- fn set_system_err ( & mut self , system_err : impl Into < String > ) -> & mut Self {
286+ fn set_system_err ( & mut self , system_err : impl Into < XmlString > ) -> & mut Self {
285287 match self {
286288 TestcaseOrRerun :: Testcase ( testcase) => {
287289 testcase. set_system_err ( system_err. into ( ) ) ;
@@ -305,7 +307,7 @@ fn set_execute_status_props(
305307 if !is_success {
306308 let description = output. heuristic_extract_description ( execute_status. result ) ;
307309 if let Some ( description) = description {
308- out. set_description ( description. display_human ( ) . to_junit_output ( ) ) ;
310+ out. set_description ( description. display_human ( ) . to_string ( ) ) ;
309311 }
310312 }
311313
0 commit comments