Skip to content

Commit

Permalink
Reverting the CoverageReporter changes to make it a SKIP status
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev committed Aug 27, 2024
1 parent 011112f commit 9fe65f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.oppia.android.scripts.coverage.reporter

import com.google.common.html.HtmlEscapers
import org.oppia.android.scripts.proto.Coverage
import org.oppia.android.scripts.proto.CoverageReport
import org.oppia.android.scripts.proto.CoverageReportContainer
Expand Down Expand Up @@ -278,7 +277,7 @@ class CoverageReporter(
"""
<tr>
<td class="line-number-row">${lineNumber.toString().padStart(4, ' ')}</td>
<td class="$lineClass">${HtmlEscapers.htmlEscaper().escape(line)}</td>
<td class="$lineClass">$line</td>
</tr>
""".trimIndent()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -697,13 +697,7 @@ class CoverageReporterTest {
</html>
""".trimIndent()

val unescapedOutputReportText = outputReportText
.replace("&quot;", "\"")
.replace("&amp;", "&")
.replace("&lt;", "<")
.replace("&gt;", ">")

assertThat(unescapedOutputReportText).isEqualTo(expectedHtml)
assertThat(outputReportText).isEqualTo(expectedHtml)
}

@Test
Expand Down

0 comments on commit 9fe65f4

Please sign in to comment.