Condition Coverage

blib/lib/Resource/Silo/Metadata.pm
Criterion Covered Total %
condition 47 56 83.9


and 3 conditions

line !l l&&!r l&&r condition
81 1 1 98 defined $name and not ref $name
2 3 95 defined $name and not ref $name and $name =~ /$ID_REX/i
108 7 2 0 defined $spec{$_} and croak("resource '${name}': 'literal' is incompatible with '${_}'")
147 2 1 74 ref $spec{'init'} and &reftype($spec{'init'}) eq $CODE
170 69 3 0 $spec{'ignore_cache'} and defined $spec{'cleanup'} || defined $spec{'fork_cleanup'} || $spec{'cleanup_order'} != 0
174 62 6 2 defined $spec{'cleanup'} and (&reftype($spec{'cleanup'}) // "") ne $CODE
176 64 2 2 defined $spec{'fork_cleanup'} and (&reftype($spec{'fork_cleanup'}) // "") ne $CODE
206 12 1 0 defined $spec->{$_} and croak("resource '${name}': 'class' is incompatible with '${_}'")
228 0 5 1 defined $entry and not ref $entry
233 1 1 4 ref $entry eq "ARRAY" and @$entry <= 2
2 1 3 ref $entry eq "ARRAY" and @$entry <= 2 and ($entry->[0] // "") =~ /$ID_REX/

or 2 conditions

line l !l condition
110 0 2 $spec{'dependencies'} //= []
111 0 2 $spec{'derived'} //= 1
112 0 2 $spec{'cleanup_order'} //= "Inf"
149 2 1 &reftype($spec{'argument'}) // ""
162 6 67 $spec{'cleanup_order'} //= 0
174 7 1 &reftype($spec{'cleanup'}) // ""
176 3 1 &reftype($spec{'fork_cleanup'}) // ""
201 7 1 $spec->{'dependencies'} //= {}
233 4 0 $entry->[0] // ""
241 1 2 $entry->[1] // ""

or 3 conditions

line l !l&&r !l&&!r condition
170 2 0 1 defined $spec{'cleanup'} || defined $spec{'fork_cleanup'} || $spec{'cleanup_order'} != 0