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
69 0 0 0 $have_dbh and not $$self{'have_masterdb'}
105 0 0 0 $have_dbh and Mgd::get_store()->get_lock('mgfs:device_update', 0)
159 0 0 0 $pending_since and $pending_since > $start
354 0 0 0 exists $$old{$k} and not exists $$new{$k}
355 0 0 0 exists $$new{$k} and not exists $$old{$k}
356 0 0 0 defined $$old{$k} and not defined $$new{$k}
357 0 0 0 defined $$new{$k} and not defined $$old{$k}
403 0 0 0 $used and $total
417 0 0 0 $devrow && $$devrow{'mb_asof'}

or 2 conditions

line l !l condition
406 0 0 $data || ''
449 0 0 $$rstate{'test_write'} ||= {}
452 0 0 $$test_write{'tries'} ||= 2
491 0 0 $$self{'last_test_write'}{$devid} || 0

or 3 conditions

line l !l&&r !l&&!r condition
171 0 0 0 not $pending_since or $pending_since <= $start
175 0 0 0 delete $$self{'db_monitor_ran'} or $pending_since
216 0 0 0 $$self{'refresh_pending'} ||= &Time::HiRes::time()
246 0 0 0 $$self{'refresh_pending'} ||= &Time::HiRes::time()
306 0 0 0 not defined $p or $p ne $c
333 0 0 0 not $old or $self->diff_hash($old, $item)
358 0 0 0 defined $$new{$k} or defined $$old{$k}
445 0 0 0 not $test_write or $$test_write{'tries'} > 0
612 0 0 0 not defined $prev or $prev != $rej