aboutsummaryrefslogtreecommitdiffstats
path: root/tool
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
commit6e0a6bf304c05bc619018e4bc11c35a43b4699fc (patch)
tree5f8cd66deb92624147e387ab56e1447d458169a3 /tool
parent3b5330343bfac45a6866f188b3081e4ad81628b1 (diff)
downloadruby-6e0a6bf304c05bc619018e4bc11c35a43b4699fc.tar.gz
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')
-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 }"