Branch Coverage

blib/lib/Resource/Silo/Container.pm
Criterion Covered Total %
branch 68 70 97.1


line true false branch
71 52 4 if $self->{'-spec'}
81 0 19 unless $active_instances{$id}
121 2 161 unless $name =~ /$ID_REX/i
127 1 160 unless $spec
129 1 159 if ref $arg
132 2 157 unless $spec->{'argument'}->($arg)
135 1 156 if $self->{'-cleanup'}
139 1 4 if $self->{'-locked'} and not $spec->{'derived'} and not $self->{'-override'}{$name}
142 28 127 length $arg ? :
143 1 154 if ($self->{'-pending'}{$key})
150 1 5 unless eval { do { &load($mod); 1 } }
161 8 134 unless (defined $entity)
162 3 5 if $spec->{'nullable'}
165 4 130 if ($spec->{'coerce'})
167 2 2 if not defined $entity or ref $entity eq "" and $entity eq ""
171 4 128 if $spec->{'check'}
182 9 18 if $opt{'fork'} and not $opt{'force'} and $spec->{'fork_safe'}
187 130 7 unless ($self->{'-override'}{$name})
190 27 103 $opt{'fork'} ? :
196 59 78 if ($action)
202 3 55 unless (eval { do { &$action($known->{$arg}); 1 } })
223 5 176 if ($self->{'-pid'} != (my $pid = $$))
230 5 176 if $self->{'-allow'} and not $self->{'-allow'}{$name}
234 39 137 defined $arg && !ref($arg) ? :
235 154 22 unless (exists $self->{'-cache'}{$name}{$key})
248 3 8 if @bad
259 1 12 unless $known->{$name}
266 11 1 if (defined $init) { }
269 1 10 (builtin::reftype($init) // '') eq 'CODE' ? :
281 0 5 $spec->{'autodeps'} ? :
294 1 3 if $meta
347 5 3 if $$ != $$self->{'-pid'}
423 8 67 if $$ != $$self->{'-pid'}
481 2 4 length $arg ? :
484 4 1 wantarray ? :