Condition Coverage

blib/lib/Resource/Silo/Container.pm
Criterion Covered Total %
condition 28 33 84.8


and 3 conditions

line !l l&&!r l&&r condition
142 89 3 2 $self->{'-locked'} and not $spec->{'derived'}
92 1 1 $self->{'-locked'} and not $spec->{'derived'} and not $self->{'-override'}{$name}
145 60 33 0 $self->{'-allow'} and not $self->{'-allow'}{$name}
215 63 43 3 $self->{'-allow'} and not $self->{'-allow'}{$name}
219 73 1 32 defined $arg && !ref($arg)

or 2 conditions

line l !l condition
128 25 74 $arg //= ""
185 85 0 $arg //= ""
251 0 4 &reftype($init) // ""

or 3 conditions

line l !l&&r !l&&!r condition
160 4 87 0 $self->{'-override'}{$name} // $spec->{'init'}
78 4 0 ($self->{'-override'}{$name} // $spec->{'init'})->($self, $name, $arg) // croak("Fetching resource '${key}' failed for no apparent reason")
177 1 12 58 $self->{'-pid'} != $$ && $spec->{'fork_cleanup'} || $spec->{'cleanup'}
220 16 83 7 $self->{'-cache'}{$name}{$key} //= $self->_instantiate_resource($name, $arg)