Branch Coverage

blib/lib/SQL/Statement/Functions.pm
Criterion Covered Total %
branch 46 70 65.7


line true false branch
307 4 4 if ($_[2])
314 4 4 $prec ? :
4 4 $prec ? :
334 1 2 $_[2] ? :
347 2 0 defined $_[2] ? :
414 3 3 if defined $_
514 0 5 unless scalar @params > 3 and $#params & 1
523 0 5 unless defined $lhs
529 0 7 unless defined $rhs
532 4 3 if &looks_like_number($rhs) and $lhs_isnum and $lhs == $rhs or $lhs eq $rhs
693 1 1 if $modifier
694 1 1 $params[0] =~ qr/$pattern/ ? :
729 0 2 unless defined $params[0] and defined $params[1]
732 0 2 $@ ? :
755 0 2 unless my $s1 = Text::Soundex::soundex($params[0])
756 0 2 unless my $s2 = Text::Soundex::soundex($params[1])
757 1 1 $s1 eq $s2 ? :
803 1 0 if length $string >= $start - 2 + $offset
865 0 2 unless defined $hex
875 1 1 $encoding ? :
901 1 2 $i == $_[2] ? :
907 1 4 $i == $_[2] ? :
933 4 1 $_[3] ? :
981 0 2 if $_[3]
992 1 7 $_[3] ? :
1003 3 1 defined $_[2] ? :
1224 2 0 if (&_ARRAY0($params[0])) { }
0 0 elsif (&_INSTANCE($params[0], 'DBI::st')) { }
1226 1 1 unless &_HASH0($params[0][0])
1231 1 1 unless @tbl
1239 0 0 unless @cols
1263 0 0 unless @params
1265 0 0 unless open IN, '<', $file
1275 0 0 unless $tmp_sth->{'NUM_OF_FIELDS'}
1276 0 0 unless @results