From 1cc711286862681c99154a35f2a1f818fb1ee2e2 Mon Sep 17 00:00:00 2001 From: AlexHaxe Date: Sat, 26 Mar 2016 15:20:25 +0100 Subject: [PATCH] try Dynamic for coverage results --- test/TestMain.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/TestMain.hx b/test/TestMain.hx index 2eed2664..936be377 100644 --- a/test/TestMain.hx +++ b/test/TestMain.hx @@ -37,14 +37,14 @@ class TestMain { var report = { coverage: {} }; var classes = logger.coverage.getClasses(); for (cls in classes) { - var coverageData:Array = [null]; + var coverageData:Array = [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 = 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 = cls.getMissingBranches(); for (branch in missingBranches) {