Branch Coverage

blib/lib/VLGal/Size.pm
Criterion Covered Total %
branch 12 38 31.5


line true false branch
196 8 0 defined $_[0] ? :
199 0 8 unless ref $opt eq 'HASH'
202 0 8 if exists $$opt{'basename'}
205 0 8 if exists $$opt{'label'}
208 8 0 if exists $$opt{'max_height'}
211 8 0 if exists $$opt{'max_width'}
221 0 0 unless (exists $ALLOW_ISA{$name} or exists $ALLOW_REF{$name} or exists $ALLOW_RX{$name} or exists $ALLOW_VALUE{$name})
229 0 16 if (ref $val and exists $ALLOW_ISA{$name})
231 0 0 if &UNIVERSAL::isa($val, $class)
236 0 16 if (ref $val and exists $ALLOW_REF{$name})
237 0 0 if exists $ALLOW_REF{$name}{ref $val}
241 16 0 if (defined $val and not ref $val and exists $ALLOW_RX{$name})
243 16 0 if $val =~ /$rx/
248 0 0 if (not ref $val and exists $ALLOW_VALUE{$name})
249 0 0 if exists $ALLOW_VALUE{$name}{$val}
289 0 0 unless &_value_is_allowed('basename', $val)
300 0 0 unless &_value_is_allowed('label', $val)
311 0 8 unless &_value_is_allowed('max_height', $val)
322 0 8 unless &_value_is_allowed('max_width', $val)