Condition Coverage

blib/lib/Term/Cap.pm
Criterion Covered Total %
condition 29 48 60.4


and 3 conditions

line !l l&&!r l&&r condition
87 1 7 0 exists $ENV{'TERMCAP'} and $^O eq 'os2' || $^O eq 'MSWin32' || $^O eq 'dos' ? $ENV{'TERMCAP'} =~ m[^[a-z]:[\\/]]is : $ENV{'TERMCAP'} =~ m[^/]s
90 2 6 0 exists $ENV{'TERMPATH'} and $ENV{'TERMPATH'}
232 0 5 0 not $foo =~ m[^/]s and $foo =~ /(^|\|)$Term::Cap::termpat[:|]/s
256 0 1 0 not $tmp =~ m[^/]s and $tmp =~ /(^|\|)$Term::Cap::termpat[:|]/s
365 0 8 3 defined $field and $field =~ /^(\w{2,})$/
0 7 1 defined $field and $field =~ /^(\w{2,})\@/
0 5 2 defined $field and $field =~ /^(\w{2,})#(.*)/
0 0 5 defined $field and $field =~ /^(\w{2,})=(.*)/
466 1 14 2 defined $string and $string =~ /(^[\d.]+)(\*?)(.*)$/
692 1 0 1 defined $$self{'_' . $cap} and $$self{'_' . $cap}

or 3 conditions

line l !l&&r !l&&!r condition
87 0 0 7 $^O eq 'os2' || $^O eq 'MSWin32' || $^O eq 'dos'
239 3 0 2 @termcap_path or $Term::Cap::entry
275 3 0 2 @termcap_path or $Term::Cap::entry
330 3 1 0 shift @termcap_path || croak("failed termcap lookup on $tmp_term")
617 1 0 1 $tmp == 0 or $tmp == 4
1 0 1 $tmp == 0 or $tmp == 4 or $tmp == 10