Skip to content

Commit

Permalink
Fix compilation error on master
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow-Devil committed Sep 14, 2024
1 parent 8cf2010 commit 61adedb
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,10 @@ private void validateCoverage() {
} else if ("foo.annot".equals(moduleObj.get("name").getAsString())) {
JsonObject fileObj = (JsonObject) moduleObj.get("sourceFiles").getAsJsonArray().get(0);
Assert.assertEquals("main.bal", fileObj.get("name").getAsString());
Assert.assertEquals(parser.parse(Arrays.toString(annotMainCovered)),
parser.parse(fileObj.get("coveredLines").getAsJsonArray().toString()));
Assert.assertEquals(parser.parse(Arrays.toString(annotMainMissed)),
parser.parse(fileObj.get("missedLines").getAsJsonArray().toString()));
Assert.assertEquals(JsonParser.parseString(Arrays.toString(annotMainCovered)),
JsonParser.parseString(fileObj.get("coveredLines").getAsJsonArray().toString()));
Assert.assertEquals(JsonParser.parseString(Arrays.toString(annotMainMissed)),
JsonParser.parseString(fileObj.get("missedLines").getAsJsonArray().toString()));
Assert.assertEquals(annotMainPercentage, fileObj.get("coveragePercentage").getAsFloat());

// Verify coverage of module
Expand Down Expand Up @@ -451,10 +451,10 @@ private void validateModuleWiseCoverage() {
} else if ("foo.annot".equals(moduleObj.get("name").getAsString())) {
JsonObject fileObj = (JsonObject) moduleObj.get("sourceFiles").getAsJsonArray().get(0);
Assert.assertEquals("main.bal", fileObj.get("name").getAsString());
Assert.assertEquals(parser.parse(Arrays.toString(annotMainCovered)),
parser.parse(fileObj.get("coveredLines").getAsJsonArray().toString()));
Assert.assertEquals(parser.parse(Arrays.toString(annotMainMissed)),
parser.parse(fileObj.get("missedLines").getAsJsonArray().toString()));
Assert.assertEquals(JsonParser.parseString(Arrays.toString(annotMainCovered)),
JsonParser.parseString(fileObj.get("coveredLines").getAsJsonArray().toString()));
Assert.assertEquals(JsonParser.parseString(Arrays.toString(annotMainMissed)),
JsonParser.parseString(fileObj.get("missedLines").getAsJsonArray().toString()));
Assert.assertEquals(annotMainPercentage, fileObj.get("coveragePercentage").getAsFloat());

// Verify coverage of module
Expand Down

0 comments on commit 61adedb

Please sign in to comment.