Condition Coverage

Test/DBO.pm
Criterion Covered Total %
condition 19 58 32.7


and 3 conditions

line !l l&&!r l&&r condition
225 0 0 1 $dbo->do("DROP TABLE $quoted_table") and $dbo->do($create_table)
574 0 0 1 $q->run && $q->fetch->{'name'} eq 'JOHN DOE'
716 0 0 0 blessed $val and not defined $var

or 2 conditions

line l !l condition
169 0 0 $DBI::errstr || $me->rdbh->errstr || '???'
208 1 0 $can{'auto_increment_id'} || 'INT NOT NULL'
809 0 6 $attr ||= {}
810 0 6 $$attr{'NAME'} ||= \@cols
811 0 6 $$attr{'rows'} ||= \@rows

or 3 conditions

line l !l&&r !l&&!r condition
150 0 2 5 exists $opt{'try_connect'} or exists $opt{'connect_ok'}
194 0 2 0 try_to_connect($dbo_ref) || ($$dbo_ref = connect_dbo(@_))
225 1 0 0 $dbo->do("DROP TABLE $quoted_table") and $dbo->do($create_table) or diag(sql_err($dbo))
241 0 0 0 ok $dbo->do($create_table), 'Create the test table' or diag(sql_err($dbo))
417 1 0 0 ok !$r->is_empty, 'Row reloaded on update' or $r->load('id', [2, 3])
654 1 0 0 $q->run or fail 'JOIN ON'
1 0 0 $q->run or fail 'JOIN ON' or diag(sql_err($q))
656 1 0 0 $r = $q->fetch or fail 'JOIN ON'
679 1 0 0 $q->_sth or diag(sql_err($q))
1 0 0 $q->_sth or diag(sql_err($q)) or fail 'LEFT JOIN'
681 1 0 0 $r = $q->fetch or fail 'LEFT JOIN'
711 0 0 1 defined $$dbo{'dbh'} || defined $$dbo{'rdbh'}
792 0 4 0 $$me{'TableInfo'}{''}{$table} ||= $fake_table_info