blib/lib/Resource/Silo/Container.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 30 | 36 | 83.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
137 | 91 | 3 | 2 | $self->{'-locked'} and not $spec->{'derived'} |
94 | 1 | 1 | $self->{'-locked'} and not $spec->{'derived'} and not $self->{'-override'}{$name} | |
140 | 62 | 33 | 0 | $self->{'-allow'} and not $self->{'-allow'}{$name} |
216 | 65 | 43 | 4 | $self->{'-allow'} and not $self->{'-allow'}{$name} |
220 | 75 | 1 | 32 | defined $arg && !ref($arg) |
line | l | !l | condition |
---|---|---|---|
123 | 25 | 76 | $arg //= "" |
185 | 87 | 0 | $arg //= "" |
252 | 0 | 4 | &reftype($init) // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
51 | 47 | 1 | 0 | $Resource::Silo::metadata{ref $self} // _silo_find_metaclass($self) |
160 | 4 | 89 | 0 | $self->{'-override'}{$name} // $spec->{'init'} |
79 | 4 | 0 | ($self->{'-override'}{$name} // $spec->{'init'})->($self, $name, $arg) // croak("Instantiating resource '${key}' failed for no apparent reason") | |
177 | 1 | 13 | 59 | $self->{'-pid'} != $$ && $spec->{'fork_cleanup'} || $spec->{'cleanup'} |
221 | 16 | 84 | 8 | $self->{'-cache'}{$name}{$key} //= $self->_silo_instantiate_res($name, $arg) |