mirror of
https://github.com/mgcaret/of816.git
synced 2025-01-16 14:30:34 +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
|
help << $1
|
||||||
when /^\s*dword(q?)\s+(.+)/
|
when /^\s*dword(q?)\s+(.+)/
|
||||||
_label, name, flags = CSV.parse_line($2)
|
_label, name, flags = CSV.parse_line($2)
|
||||||
|
name.upcase!
|
||||||
name.tr!("'", '"') if $1 == 'q'
|
name.tr!("'", '"') if $1 == 'q'
|
||||||
output[name] ||= {}
|
output[name] ||= {}
|
||||||
output[name].merge!({"help" => help}) unless help.empty?
|
output[name].merge!({"help" => help}) unless help.empty?
|
||||||
@ -41,7 +42,7 @@ input.lines.each do |line|
|
|||||||
fl = flags.split('|')
|
fl = flags.split('|')
|
||||||
output[name].merge!({"flags" => fl}) unless fl.empty?
|
output[name].merge!({"flags" => fl}) unless fl.empty?
|
||||||
end
|
end
|
||||||
output[name].merge!({"tests" => coverage[name]}) if coverage[name]
|
output[name].merge!({"tests" => coverage[name.downcase]}) if coverage[name.downcase]
|
||||||
when /^\s*eword/
|
when /^\s*eword/
|
||||||
help = []
|
help = []
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user