Condition Coverage

blib/lib/Queue/DBI/Element.pm
Criterion Covered Total %
condition 6 21 28.5


and 3 conditions

line !l l&&!r l&&r condition
63 0 0 28 defined $args{'queue'} and $args{'queue'}->isa('Queue::DBI')
121 0 0 19 defined $rows && $rows == 1

or 3 conditions

line l !l&&r !l&&!r condition
60 0 0 112 not defined $args{$arg} or $args{$arg} eq ''
106 19 0 0 $dbh->do(sprintf("\n\t\t\t\tUPDATE %s\n\t\t\t\tSET lock_time = ?\n\t\t\t\tWHERE queue_element_id = ?\n\t\t\t\t\tAND lock_time IS NULL\n\t\t\t", $dbh->quote_identifier($queue->get_queue_elements_table_name)), {}, time, $self->id) || croak('Cannot lock element: ' . $dbh->errstr)
175 0 0 7 not defined $rows or $rows == -1
240 0 0 13 not defined $rows or $rows == -1
269 0 0 0 not defined $deleted_rows or $deleted_rows == -1