Condition Coverage

Test/DBO.pm
Criterion Covered Total %
condition 25 66 37.8


and 3 conditions

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

or 2 conditions

line l !l condition
155 0 0 $DBI::errstr || $me->rdbh->errstr || '???'
164 0 2 $dsn //= ""
205 1 0 $can{'auto_increment_id'} || 'INT NOT NULL'
734 0 0 $var //= "dump"
825 4 6 $attr ||= {}
827 4 6 $attr->{'rows'} ||= [@rows]

or 3 conditions

line l !l&&r !l&&!r condition
129 0 5 3 $ENV{'DBO_CACHE_QUERY'} // int rand 2
135 0 2 6 exists $opt{'try_connect'} or exists $opt{'connect_ok'}
180 0 2 0 try_to_connect($dbo_ref) || ($$dbo_ref = connect_dbo(@_))
220 1 0 0 $dbo->do("DROP TABLE $quoted_table") and $dbo->do($create_table) or diag(sql_err($dbo))
236 0 0 0 &ok(scalar $dbo->do($create_table), "Create the test table") or diag(sql_err($dbo))
408 1 0 0 &ok(!$r->is_empty, "Row reloaded on update") or $r->load("id", [2, 3])
658 1 0 0 $q->run or &fail("JOIN ON")
1 0 0 $q->run or &fail("JOIN ON") or diag(sql_err($q))
659 1 0 0 $r = $q->fetch or &fail("JOIN ON")
683 1 0 0 $q->run or diag(sql_err($q))
1 0 0 $q->run or diag(sql_err($q)) or &fail("LEFT JOIN")
684 1 0 0 $r = $q->fetch or &fail("LEFT JOIN")
718 0 0 1 defined $dbo->{'dbh'} || defined $dbo->{'rdbh'}
799 0 10 0 $me->{'TableInfo'}{''}{$table} ||= $fake_table_info
826 4 6 0 $attr->{'NAME'} ||= $cols