Skip to content

Commit

Permalink
try Dynamic for coverage results
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Mar 26, 2016
1 parent 5e45de7 commit 1cc7112
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/TestMain.hx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ class TestMain {
var report = { coverage: {} };
var classes = logger.coverage.getClasses();
for (cls in classes) {
var coverageData:Array<String> = [null];
var coverageData:Array<Dynamic> = [null];
var results:CoverageResult = cls.getResults();
for (i in 1...results.l) coverageData[i] = "1";
for (i in 1...results.l) coverageData[i] = 1;
var c = cls.name.replace(".", "/") + ".hx";

var missingStatements:Array<Statement> = cls.getMissingStatements();
for (stmt in missingStatements) {
for (line in stmt.lines) coverageData[line] = "0";
for (line in stmt.lines) coverageData[line] = 0;
}
var missingBranches:Array<Branch> = cls.getMissingBranches();
for (branch in missingBranches) {
Expand Down

0 comments on commit 1cc7112

Please sign in to comment.