Condition Coverage

blib/lib/Resource/Silo/Metadata.pm
Criterion Covered Total %
condition 46 54 85.1


and 3 conditions

line !l l&&!r l&&r condition
81 1 1 92 defined $name and not ref $name
2 3 89 defined $name and not ref $name and $name =~ /$ID_REX/i
108 4 2 0 defined $spec{$_} and croak("resource '${name}': 'literal' is incompatible with '${_}'")
145 2 1 68 ref $spec{'init'} and &reftype($spec{'init'}) eq $CODE
166 63 3 0 $spec{'ignore_cache'} and defined $spec{'cleanup'} || defined $spec{'fork_cleanup'} || $spec{'cleanup_order'} != 0
170 56 6 2 defined $spec{'cleanup'} and (&reftype($spec{'cleanup'}) // "") ne $CODE
172 58 2 2 defined $spec{'fork_cleanup'} and (&reftype($spec{'fork_cleanup'}) // "") ne $CODE
200 12 1 0 defined $spec->{$_} and croak("resource '${name}': 'class' is incompatible with '${_}'")
222 0 5 1 defined $entry and not ref $entry
227 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 1 $spec{'dependencies'} //= []
111 0 1 $spec{'derived'} //= 1
147 2 1 &reftype($spec{'argument'}) // ""
158 4 63 $spec{'cleanup_order'} //= 0
170 7 1 &reftype($spec{'cleanup'}) // ""
172 3 1 &reftype($spec{'fork_cleanup'}) // ""
195 7 1 $spec->{'dependencies'} //= {}
227 4 0 $entry->[0] // ""
235 1 2 $entry->[1] // ""

or 3 conditions

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