Branch Coverage

blib/lib/MogileFS/Connection/Poolable.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
51 6 5 if $$self{'mfs_requests'} == 0
72 31 11 if ($timeout_key) { }
75 31 0 if ($timeout_key =~ /\A[a-z_]+\z/) { }
91 31 0 if $mfs_pool
94 11 0 if $mfs_pool
105 0 6 unless my $expire = $$self{'mfs_expire'}
108 2 4 if ($now >= $expire)
110 2 0 if ($expire_cb and $self->sock)
125 0 0 if ($close_reason =~ /\A:event_(?:hup|err)\z/) { }
128 0 0 if $$self{'mfs_pool'}
151 9 0 if ($mfs_pool)
157 1 8 if ($inflight_cb and $close_reason)
158 0 1 if ($close_reason eq ':retry') { }
177 0 14 unless $mfs_pool
201 11 0 $mfs_pool ? :