Branch Coverage

blib/lib/Resource/Silo/Container.pm
Criterion Covered Total %
branch 64 66 96.9


line true false branch
71 48 4 if $self->{'-spec'}
78 0 19 unless $container
118 2 155 unless $name =~ /$ID_REX/i
124 1 154 unless $spec
126 1 153 if ref $arg
129 2 151 unless $spec->{'argument'}->($arg)
132 1 150 if $self->{'-cleanup'}
136 1 4 if $self->{'-locked'} and not $spec->{'derived'} and not $self->{'-override'}{$name}
139 26 123 length $arg ? :
140 1 148 if ($self->{'-pending'}{$key})
147 1 5 unless eval { do { &load($mod); 1 } }
158 8 128 unless (defined $entity)
159 3 5 if $spec->{'nullable'}
163 3 125 if $spec->{'check'}
174 9 18 if $opt{'fork'} and not $opt{'force'} and $spec->{'fork_safe'}
179 125 7 unless ($self->{'-override'}{$name})
182 27 98 $opt{'fork'} ? :
188 59 73 if ($action)
194 3 55 unless (eval { do { &$action($known->{$arg}); 1 } })
215 5 170 if ($self->{'-pid'} != (my $pid = $$))
222 5 170 if $self->{'-allow'} and not $self->{'-allow'}{$name}
226 37 133 defined $arg && !ref($arg) ? :
227 148 22 unless (exists $self->{'-cache'}{$name}{$key})
240 3 8 if @bad
251 1 12 unless $known->{$name}
258 11 1 if (defined $init) { }
261 1 10 (builtin::reftype($init) // '') eq 'CODE' ? :
273 0 5 $spec->{'autodeps'} ? :
286 1 3 if $meta
339 5 3 if $$ != $$self->{'-pid'}
414 8 63 if $$ != $$self->{'-pid'}
472 2 4 length $arg ? :
475 4 1 wantarray ? :