mirror of
https://github.com/mgcaret/of816.git
synced 2024-12-27 19:29:58 +00:00
fix coverage reporting
This commit is contained in:
parent
169fefb600
commit
98f0665349
@ -34,6 +34,7 @@ input.lines.each do |line|
|
||||
help << $1
|
||||
when /^\s*dword(q?)\s+(.+)/
|
||||
_label, name, flags = CSV.parse_line($2)
|
||||
name.upcase!
|
||||
name.tr!("'", '"') if $1 == 'q'
|
||||
output[name] ||= {}
|
||||
output[name].merge!({"help" => help}) unless help.empty?
|
||||
@ -41,7 +42,7 @@ input.lines.each do |line|
|
||||
fl = flags.split('|')
|
||||
output[name].merge!({"flags" => fl}) unless fl.empty?
|
||||
end
|
||||
output[name].merge!({"tests" => coverage[name]}) if coverage[name]
|
||||
output[name].merge!({"tests" => coverage[name.downcase]}) if coverage[name.downcase]
|
||||
when /^\s*eword/
|
||||
help = []
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user