Branch Coverage

blib/lib/ResourcePool.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
37 18 6 unless (exists $$self{'Factory'})
51 3 15 if (scalar @_ == 1) { }
11 4 elsif (scalar @_ > 1) { }
57 3 15 if ($options{'MaxTry'} <= 1)
61 18 0 if (ref $options{'SleepOnFail'}) { }
97 69 188 unless ($$self{'FreePoolSize'})
100 232 25 if ($$self{'FreePoolSize'})
104 4 228 unless ($rec->precheck)
110 228 4 if ($rec)
124 195 0 if ($rec) { }
127 194 1 if ($rec->postcheck) { }
145 21 0 if (defined $rec) { }
222 52 31 if (not defined $$self{'Max'} or $PoolSize < $$self{'Max'})
225 49 3 if (defined $rec)