1
0
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:
mgcaret 2020-01-06 19:40:46 -08:00
parent 169fefb600
commit 98f0665349

View File

@ -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