Condition Coverage

blib/lib/Test/Smoke/Database/Parsing.pm
Criterion Covered Total %
condition 109 182 59.8


and 3 conditions

line !l l&&!r l&&r condition
82 0 0 0 /(\d+)\.rpt/ and $k{$1}
151 0 11882 0 $a and ref $a
156 1133 0 14 $l =~ /^ HP-UX/ and not $ok
159 0 635 0 $ok > 5 and $l =~ /^\d/ || $l =~ /^ \d/
0 605 0 $ok > 5 and $l =~ /^O/ || $l =~ /^F/ || $l =~ /^m/
505 3 97 $ok > 5 and $l =~ /^O/ || $l =~ /^F/ || $l =~ /^m/ and $l ne "Failures:\n"
166 14 14 90 $_ and /^\d*$/
214 156 31 181 $l =~ /^[ \t]+/ and %last
229 0 53 0 ref $r and $$r{'smoke'}
242 24 3 26 not $$r{'ccver'} and $header =~ /${name}[^ ]* \s*([^\n]*)\n/i
246 0 2 24 $lr[$ok + 1]{'os'} and $lr[$ok + 1]{'os'} eq $$r{'os'}
250 3 42 8 $$r{'ccver'} and $$r{'ccver'} =~ /^(.*?)\s+32-bit$/
295 226 335 46 not $fail and $l =~ /^[\| ]*\+-+ (.*)$/
561 0 46 not $fail and $l =~ /^[\| ]*\+-+ (.*)$/ and not $1 =~ /^-*$/
388 0 0 11 $h{'build'} and $h{'os'}
395 0 0 0 not $have_result and !$col || $col != -1
436 0 32 32 defined $$ref{'cc'} && $$ref{'cc'} =~ /gcc/
437 32 28 4 not $isgcc and $$ref{'cc'} =~ /cc/
60 4 0 not $isgcc and $$ref{'cc'} =~ /cc/ and $$ref{'ccver'} =~ /^2\.9/ || $$ref{'ccver'} =~ /^3\./
439 35 1 28 not $isgcc and $$ref{'ccver'}
36 28 0 not $isgcc and $$ref{'ccver'} and $$ref{'ccver'} =~ /^egcs-/
442 28 34 1 $isgcc and $$ref{'cc'} =~ m[/([^/]+ .+)$]
28 33 1 $isgcc and $$ref{'cc'} =~ m[/([^/]+)$]
451 0 1 0 $$ref{'os'} eq 'solaris' and $$ref{'osver'} =~ /2.7/ || $$ref{'osver'} =~ /2.8/
458 28 20 11 $isgcc and $$ref{'ccver'} =~ /^([\d\.]+) /
486 58 0 0 $$ref{'os'} eq 'NetBSD' and $$ref{'osver'} eq '1.5.3'
58 0 0 $$ref{'os'} eq 'linux' and $$ref{'osver'} eq '2.2.19'
58 0 0 $$ref{'os'} eq 'linux' and $$ref{'osver'} eq '2.2.16' || $$ref{'osver'} eq '2.4.18'
56 0 2 $$ref{'os'} =~ /^irix/ and $$ref{'osver'} =~ /^(.*) (IP\d*)/
513 8 0 49 $$ref{'smoke'} > 17675 and $$ref{'smoke'} < 22318
8 0 0 $$ref{'smoke'} > 17675 and $$ref{'smoke'} < 22523
523 10 0 54 $$ref{'date'} and $$ref{'date'} =~ /$date/
550 11 0 53 $$ref{'version'} =~ /^5\.9/ and $$ref{'build'}

or 2 conditions

line l !l condition
410 53 11 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
82 0 0 0 /~$/ or /(\d+)\.rpt/ and $k{$1}
92 0 0 0 not $$_{'id'} or $k{$$_{'id'}}
159 6 24 605 $l =~ /^\d/ || $l =~ /^ \d/
88 12 505 $l =~ /^O/ || $l =~ /^F/ || $l =~ /^m/
184 90 0 7 $conf =~ /^-/ or $conf =~ /^\s*$/
199 3708 0 0 $$a{'os'} or $$a{'osver'}
295 0 0 737 $l =~ /Automated smoke report for patch (\d+) on - $/ or $l =~ /Automated smoke report for patch (\d*) on - \(\)$/
2 5 730 $l =~ /Automated smoke report for patch (\d+) on (.*) - (.*)$/ or $l =~ /Automated smoke report for .* patch (\d+) on (.*) - (.*)$/
64 6 612 $l =~ /^($re4Smoke) +(-.+)$/ or $l =~ /^($re4Smoke)$/
4 1 607 $l =~ /^($re2Smoke) +(-.+)$/ or $l =~ /^($re2Smoke)$/
317 7 0 0 $h{'os'} or $h{'osver'}
362 1 0 69 $1 eq '- - - -' or $1 eq '? ? ? ?'
390 0 11 0 $file =~ /(\d+)\.rpt/ or $file =~ /(\d+)\.normal\.rpt/
395 0 0 0 !$col || $col != -1
437 3 0 1 $$ref{'ccver'} =~ /^2\.9/ || $$ref{'ccver'} =~ /^3\./
448 4 0 60 not $$ref{'ccver'} or $$ref{'ccver'} =~ /cc: Error:/
451 1 0 0 $$ref{'osver'} =~ /2.7/ || $$ref{'osver'} =~ /2.8/
477 5 1 58 $$ref{'osver'} =~ m[^(.*)\(([^/]{3,10})/.*\)] or $$ref{'osver'} =~ /^(.*)\(([^\)]{3,10})\)/
481 3 0 3 $$ref{'archi'} =~ /^i.86/ or $$ref{'archi'} eq 'x86'
3 0 3 $$ref{'archi'} =~ /^i.86/ or $$ref{'archi'} eq 'x86' or $$ref{'os'} eq 'cygwin'
0 0 3 $$ref{'archi'} =~ /^i.86/ or $$ref{'archi'} eq 'x86' or $$ref{'os'} eq 'cygwin' or $$ref{'os'} eq 'mswin32'
486 0 0 58 $$ref{'os'} eq 'solaris' or $$ref{'os'} eq 'NetBSD' and $$ref{'osver'} eq '1.5.3'
0 0 58 $$ref{'os'} eq 'solaris' or $$ref{'os'} eq 'NetBSD' and $$ref{'osver'} eq '1.5.3' or $$ref{'os'} eq 'linux' and $$ref{'osver'} eq '2.2.19'
0 0 0 $$ref{'osver'} eq '2.2.16' || $$ref{'osver'} eq '2.4.18'
32 0 4 $$ref{'os'} =~ /HP-UX/i or $$ref{'os'} =~ /^irix/i
512 57 0 7 not $$ref{'version'} or $$ref{'version'} eq '5.?.?'
532 0 1 58 $$ref{'author'} =~ /^alian/ or $$ref{'author'} =~ /^alb\@/