diff options
author | Eric Wong <e@80x24.org> | 2014-03-13 21:46:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-03-13 21:46:27 +0000 |
commit | f6d86eff2f59f6af861deea9b4480abdfd0e5a09 (patch) | |
tree | a61a4764916bb6e391b9c0fea3d73eba1994a9bb /test | |
parent | c28223d381a6714cf005843e029c6ef211980c72 (diff) | |
download | yahns-f6d86eff2f59f6af861deea9b4480abdfd0e5a09.tar.gz |
There's a feature request for better coverage support in ruby-trunk https://bugs.ruby-lang.org/issues/9508 At minimum, we need to preserve compatibility; but we should set aside time to take advantage of the extra coverage support.
Diffstat (limited to 'test')
-rw-r--r-- | test/helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/helper.rb b/test/helper.rb index a841f20..27adade 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -36,6 +36,12 @@ if ENV["COVERAGE"] # filter out stuff that's not in our project COVMATCH =~ filename or next + # For compatibility with https://bugs.ruby-lang.org/issues/9508 + # TODO: support those features if that gets merged into mainline + unless Array === counts + counts = counts[:lines] + end + merge = prev[filename] || [] merge = merge counts.each_with_index do |count, i| |