blib/lib/Resource/Silo/Container.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 28 | 33 | 84.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
142 | 90 | 3 | 2 | $self->{'-locked'} and not $spec->{'derived'} |
93 | 1 | 1 | $self->{'-locked'} and not $spec->{'derived'} and not $self->{'-override'}{$name} | |
145 | 61 | 33 | 0 | $self->{'-allow'} and not $self->{'-allow'}{$name} |
221 | 64 | 43 | 4 | $self->{'-allow'} and not $self->{'-allow'}{$name} |
225 | 74 | 1 | 32 | defined $arg && !ref($arg) |
line | l | !l | condition |
---|---|---|---|
128 | 25 | 75 | $arg //= "" |
190 | 86 | 0 | $arg //= "" |
257 | 0 | 4 | &reftype($init) // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
165 | 4 | 88 | 0 | $self->{'-override'}{$name} // $spec->{'init'} |
78 | 4 | 0 | ($self->{'-override'}{$name} // $spec->{'init'})->($self, $name, $arg) // croak("Instantiating resource '${key}' failed for no apparent reason") | |
182 | 1 | 12 | 59 | $self->{'-pid'} != $$ && $spec->{'fork_cleanup'} || $spec->{'cleanup'} |
226 | 16 | 83 | 8 | $self->{'-cache'}{$name}{$key} //= $self->_instantiate_resource($name, $arg) |