Skip to content

Commit

Permalink
fix forgotten test after changing xml creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Drude committed Oct 9, 2024
1 parent e3b97cf commit 70ff2c8
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions internal/reporter/checkstyle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ func TestCheckstyleReporter(t *testing.T) {
{
description: "no reports",
summary: reporter.Summary{},
output: `<?xml version='1.0' encoding='UTF-8'?>
<checkstyle version='4.3'>
</checkstyle>
output: `<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="4.3"></checkstyle>
`,
},
{
Expand All @@ -59,11 +58,11 @@ func TestCheckstyleReporter(t *testing.T) {
},
},
}),
output: `<?xml version='1.0' encoding='UTF-8'?>
<checkstyle version='4.3'>
<file name="foo.txt" >
<error line="5" severity="Information" message="Text:mock text&#xA; Details:mock details" source="mock" />
</file>
output: `<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="4.3">
<file name="foo.txt">
<error line="5" severity="Information" message="Text:mock text&#xA; Details:mock details" source="mock"></error>
</file>
</checkstyle>
`,
},
Expand All @@ -88,11 +87,11 @@ func TestCheckstyleReporter(t *testing.T) {
},
},
}),
output: `<?xml version='1.0' encoding='UTF-8'?>
<checkstyle version='4.3'>
<file name="foo.txt" >
<error line="5" severity="Bug" message="Text:mock text&#xA; Details:" source="mock" />
</file>
output: `<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="4.3">
<file name="foo.txt">
<error line="5" severity="Bug" message="Text:mock text&#xA; Details:" source="mock"></error>
</file>
</checkstyle>
`,
},
Expand All @@ -119,11 +118,11 @@ func TestCheckstyleReporter(t *testing.T) {
},
},
}),
output: `<?xml version='1.0' encoding='UTF-8'?>
<checkstyle version='4.3'>
<file name="foo.txt" >
<error line="5" severity="Bug" message="Text:mock text&#xA;&#x9;&#x9;with [new lines] and pipe| chars that are &#39;quoted&#39;&#xA;&#x9;&#x9;&#xA; Details:" source="mock" />
</file>
output: `<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="4.3">
<file name="foo.txt">
<error line="5" severity="Bug" message="Text:mock text&#xA;&#x9;&#x9;with [new lines] and pipe| chars that are &#39;quoted&#39;&#xA;&#x9;&#x9;&#xA; Details:" source="mock"></error>
</file>
</checkstyle>
`,
},
Expand Down

0 comments on commit 70ff2c8

Please sign in to comment.