Branch Coverage

blib/lib/Resource/Silo/Container.pm
Criterion Covered Total %
branch 48 54 88.8


line true false branch
73 0 20 unless $container
109 0 79 unless $$facade
119 2 101 unless $name =~ /$ID_REX/i
125 1 100 unless $spec
127 1 99 if ref $arg
130 2 97 unless $spec->{'argument'}->($arg)
133 1 96 if $self->{'-cleanup'}
137 1 4 if $self->{'-locked'} and not $spec->{'derived'} and not $self->{'-override'}{$name}
140 0 95 if $self->{'-allow'} and not $self->{'-allow'}{$name}
143 22 73 length $arg ? :
144 1 94 if ($self->{'-pending'}{$key})
151 1 5 unless eval { do { &load($mod); 1 } }
172 73 4 unless ($self->{'-override'}{$name})
181 77 0 unless @list
186 13 74 unless defined $known->{$arg}
187 14 60 if $action
198 1 65 if ($spec->{'ignore_cache'})
209 1 111 if ($self->{'-pid'} != $$)
216 4 108 if $self->{'-allow'} and not $self->{'-allow'}{$name}
220 32 76 defined $arg && !ref($arg) ? :
231 3 2 if @bad
242 1 5 unless $known->{$name}
249 4 1 if (defined $init) { }
252 0 4 (&reftype($init) // '') eq 'CODE' ? :
264 4 0 $spec->{'autodeps'} ? :
277 1 1 if $meta
417 1 71 unless (eval { do { $self->_silo_cleanup_res($name); 1 } })