Branch Coverage

blib/lib/HH/Unispool/Config/Entry/Filter.pm
Criterion Covered Total %
branch 18 40 45.0


line true false branch
339 0 11 unless &UNIVERSAL::isa($f, 'HH::Unispool::Config::File::Token::Unnumbered::Filter')
355 15 0 defined $_[0] ? :
358 0 15 unless ref $opt eq 'HASH'
361 0 15 unless exists $$opt{'file'}
365 12 3 exists $$opt{'type'} ? :
378 0 0 unless (exists $ALLOW_ISA{$name} or exists $ALLOW_REF{$name} or exists $ALLOW_RX{$name} or exists $ALLOW_VALUE{$name})
386 15 15 if (ref $val and exists $ALLOW_ISA{$name})
388 15 0 if &UNIVERSAL::isa($val, $class)
393 0 15 if (ref $val and exists $ALLOW_REF{$name})
394 0 0 if exists $ALLOW_REF{$name}{ref $val}
398 15 0 if (defined $val and not ref $val and exists $ALLOW_RX{$name})
400 15 0 if $val =~ /$rx/
405 0 0 if (not ref $val and exists $ALLOW_VALUE{$name})
406 0 0 if exists $ALLOW_VALUE{$name}{$val}
422 0 4 if (ref $from ne ref $to)
433 0 4 if ($from->get_file ne $to->get_file)
465 0 15 unless defined $val
468 0 15 unless &_value_is_allowed('file', $val)
479 0 15 unless defined $val
482 0 15 unless &_value_is_allowed('type', $val)