Condition Coverage

blib/lib/MogileFS/Worker/Monitor.pm
Criterion Covered Total %
condition 0 62 0.0


and 3 conditions

line !l l&&!r l&&r condition
68 0 0 0 $have_dbh and not $$self{'have_masterdb'}
104 0 0 0 $have_dbh and Mgd::get_store()->get_lock('mgfs:device_update', 0)
162 0 0 0 $pending_since and $pending_since > $start
349 0 0 0 exists $$old{$k} and not exists $$new{$k}
350 0 0 0 exists $$new{$k} and not exists $$old{$k}
351 0 0 0 defined $$old{$k} and not defined $$new{$k}
352 0 0 0 defined $$new{$k} and not defined $$old{$k}
398 0 0 0 $used and $total
412 0 0 0 $devrow && $$devrow{'mb_asof'}

or 2 conditions

line l !l condition
401 0 0 $data || ''
441 0 0 $$rstate{'test_write'} ||= {}
444 0 0 $$test_write{'tries'} ||= 2
483 0 0 $$self{'last_test_write'}{$devid} || 0

or 3 conditions

line l !l&&r !l&&!r condition
174 0 0 0 not $pending_since or $pending_since <= $start
178 0 0 0 delete $$self{'db_monitor_ran'} or $pending_since
211 0 0 0 $$self{'refresh_pending'} ||= &Time::HiRes::time()
241 0 0 0 $$self{'refresh_pending'} ||= &Time::HiRes::time()
301 0 0 0 not defined $p or $p ne $c
328 0 0 0 not $old or $self->diff_hash($old, $item)
353 0 0 0 defined $$new{$k} or defined $$old{$k}
437 0 0 0 not $test_write or $$test_write{'tries'} > 0
604 0 0 0 not defined $prev or $prev != $rej