Condition Coverage

blib/lib/DBD/Mock/db.pm
Criterion Covered Total %
condition 26 38 68.4


and 3 conditions

line !l l&&!r l&&r condition
92 0 12 29 ref $rs eq 'ARRAY' and scalar @{$rs;} > 0
136 42 0 57 ref $rs eq 'ARRAY' and scalar @{$rs;} > 0 || $callback
204 3 0 1 $dbh->FETCH('AutoCommit') and $dbh->FETCH('Warn')
224 3 0 1 $dbh->FETCH('AutoCommit') and $dbh->FETCH('Warn')
338 1 3 1 $parser_type and not $parser_type =~ /^(ARRAY|HASH|SCALAR)$/
427 0 0 22 ref $value and UNIVERSAL::isa($value, 'DBD::Mock::Session')

or 2 conditions

line l !l condition
23 1 0 $dbh->{'mock_get_info'} ||= {}
32 4 1 $dbh->{'mock_table_info'} ||= {}
38 3 2 $fieldNames ||= []
318 874 137 $value || 'undef'
359 18 17 $dbh->{'mock_rs'} ||= {'named', {}, 'ordered', [], 'matching', []}
427 22 0 ref $value and UNIVERSAL::isa($value, 'DBD::Mock::Session') or die "Only DBD::Mock::Session objects can be placed into the 'mock_session' slot\n"
437 4 0 $dbh->{'mock_table_info'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
136 52 5 0 scalar @{$rs;} > 0 || $callback
261 2 0 0 defined $a_ref or ref $a_ref ne 'ARRAY'