From 7e9f99c74e51d5890c9987d3fda3c2c31fd86af7 Mon Sep 17 00:00:00 2001 From: Mikhail Khorkov Date: Sat, 23 Oct 2021 22:37:59 +0700 Subject: [PATCH 1/2] Fix #6 Warn in CoveredLinesCollector.rakumod Some times raku write strange thing into covered.log. Now we works better with such situation. --- lib/App/Racoco/CoveredLinesCollector.rakumod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/Racoco/CoveredLinesCollector.rakumod b/lib/App/Racoco/CoveredLinesCollector.rakumod index 82b52a4..450e508 100644 --- a/lib/App/Racoco/CoveredLinesCollector.rakumod +++ b/lib/App/Racoco/CoveredLinesCollector.rakumod @@ -48,7 +48,7 @@ class CoveredLinesCollector is export { .unique .map(-> $h { .[0] => .[2] with $h.words}) .classify({ $_.key }) - .map({ $_.key => $_.value.map({$_.value.Int or -1}).grep(* ne -1).Set }) + .map({ $_.key => $_.value.map({ (($_.value // 0).Int // 0) }).grep(* > 0).Set }) .Hash } } From e2a46fd32cf296db0f6e56c92292cbc474930e5d Mon Sep 17 00:00:00 2001 From: Mikhail Khorkov Date: Sat, 23 Oct 2021 22:39:36 +0700 Subject: [PATCH 2/2] Bump version --- Changes | 5 ++++- META6.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 7b6baa4..b844a68 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,9 @@ Version history: -1.4.3 2021-10-22 'Bugfix release' +1.4.4 2021-10-23 'Bugfix release' + - Fix #6 Warn in CoveredLinesCollector.rakumod + +1.4.3 2021-10-23 'Bugfix release' - Fix project name getter for html page - Fix JS of report.html - Make .precomp directory check as ambiguous be before run tests diff --git a/META6.json b/META6.json index 8e30bd7..88a2b25 100644 --- a/META6.json +++ b/META6.json @@ -1,7 +1,7 @@ { "name": "App::RaCoCo", "description": "Raku Code Coverage tool.", - "version": "1.4.3", + "version": "1.4.4", "perl": "6.*", "authors": [ "Mikhail Khorkov"