mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
e2cb0eded4
commit
b366c4d410
1 changed files with 2 additions and 2 deletions
|
@ -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 }"
|
||||
|
|
Loading…
Reference in a new issue