summaryrefslogtreecommitdiff
path: root/tool/run-lcov.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-17 04:30:30 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-17 04:30:30 +0000
commitb366c4d4104d9273d011f7daec343bdced8bde17 (patch)
tree5f8cd66deb92624147e387ab56e1447d458169a3 /tool/run-lcov.rb
parente2cb0eded4813acb980b355321c2e56e82755f4c (diff)
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
Diffstat (limited to 'tool/run-lcov.rb')
-rw-r--r--tool/run-lcov.rb4
1 files changed, 2 insertions, 2 deletions
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 }"