Condition Coverage

blib/lib/Test/MockDBI.pm
Criterion Covered Total %
condition 29 48 60.4


and 3 conditions

line !l l&&!r l&&r condition
160 15 0 14 scalar @_ == 3 and $_[0] =~ /^[a-z_]+$/
15 0 14 scalar @_ == 3 and $_[0] =~ /^[a-z_]+$/ and $_[1] =~ /^\d+$/
167 14 0 0 $matchingsql and $matchingsql ne ''
201 1 0 5 scalar @_ == 3 and $_[0] =~ /^\d+$/
1 0 5 scalar @_ == 3 and $_[0] =~ /^\d+$/ and $_[1] =~ /^\d+$/
270 5 52 1 ref $sql and ref $sql ne 'Regexp'
86 58 0 $sql and (ref $sql and ref $sql ne 'Regexp')
389 66 0 0 $$obj{'PrintError'} and $$obj{'errstr'}
428 68 0 17 exists $$self{'methods'}{$method}{'default'}{'err'} and exists $$self{'methods'}{$method}{'default'}{'errstr'}
506 24 4 45 $sql =~ /$$self{'_regexes'}{$key}/ and exists $$self{'methods'}{$method}{'sqls'}{$key}{'retval'}
549 0 0 4 $$self{'methods'}{$method}{'sqls'}{$key}{'bad_params'} and ref $$self{'methods'}{$method}{'sqls'}{$key}{'bad_params'} eq 'ARRAY'
553 0 0 4 &Scalar::Util::looks_like_number($param) and &Scalar::Util::looks_like_number($bad_param)
562 20 0 10 exists $$self{'methods'}{$method}{'global_bad_params'} and ref $$self{'methods'}{$method}{'global_bad_params'} eq 'ARRAY'
564 6 3 1 &Scalar::Util::looks_like_number($param) and &Scalar::Util::looks_like_number($bad_param)

or 3 conditions

line l !l&&r !l&&!r condition
319 1 0 4 not $sql or ref $sql
663 0 0 0 not defined $thing or $thing eq ''