From b366c4d4104d9273d011f7daec343bdced8bde17 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 17 Sep 2017 04:30:30 +0000 Subject: run-lcov.rb: wrongly used unique ID as lineno The second value of key of branch/method coverage is unique ID, not lineno. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/run-lcov.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/run-lcov.rb') diff --git a/tool/run-lcov.rb b/tool/run-lcov.rb index 47f4591463..274405928f 100644 --- a/tool/run-lcov.rb +++ b/tool/run-lcov.rb @@ -63,7 +63,7 @@ def gen_rb_lcov(file) # function coverage total = covered = 0 - cov[:methods].each do |(name, lineno), count| + cov[:methods].each do |(name, _, lineno), count| f.puts "FN:#{ lineno },#{ name }" total += 1 covered += 1 if count > 0 @@ -88,7 +88,7 @@ def gen_rb_lcov(file) # branch coverage total = covered = 0 id = 0 - cov[:branches].each do |(base_type, base_lineno), targets| + cov[:branches].each do |(base_type, _, base_lineno), targets| i = 0 targets.each do |(target_type, target_lineno), count| f.puts "BRDA:#{ base_lineno },#{ id },#{ i },#{ count }" -- cgit v1.2.3