Branch Coverage

blib/lib/Resource/Silo/Container.pm
Criterion Covered Total %
branch 53 60 88.3


line true false branch
49 7 41 if &blessed($class)
51 0 48 unless my $spec = $Resource::Silo::metadata{$class}
58 4 44 if (@_)
59 1 3 if @_ % 2
78 0 20 unless $container
114 0 79 unless $$facade
124 2 100 unless $name =~ /$ID_REX/i
130 1 99 unless $spec
132 1 98 if ref $arg
135 2 96 unless $spec->{'argument'}->($arg)
138 1 95 if $self->{'-cleanup'}
142 1 4 if $self->{'-locked'} and not $spec->{'derived'} and not $self->{'-override'}{$name}
145 0 94 if $self->{'-allow'} and not $self->{'-allow'}{$name}
148 22 72 length $arg ? :
149 1 93 if ($self->{'-pending'}{$key})
156 1 5 unless eval { do { &load($mod); 1 } }
177 72 4 unless ($self->{'-override'}{$name})
186 76 0 unless @list
191 13 73 unless defined $known->{$arg}
192 13 60 if $action
203 1 65 if ($spec->{'ignore_cache'})
214 1 110 if ($self->{'-pid'} != $$)
221 4 107 if $self->{'-allow'} and not $self->{'-allow'}{$name}
225 32 75 defined $arg && !ref($arg) ? :
236 3 2 if @bad
247 1 5 unless $known->{$name}
254 4 1 if (defined $init) { }
257 0 4 (&reftype($init) // '') eq 'CODE' ? :
269 4 0 $spec->{'autodeps'} ? :
407 1 70 unless (eval { do { $self->_cleanup_resource($name); 1 } })