Branch Coverage

blib/lib/HH/Unispool/Config/File/Token/Unnumbered/Host.pm
Criterion Covered Total %
branch 19 38 50.0


line true false branch
275 26 0 defined $_[0] ? :
278 0 26 unless ref $opt eq 'HASH'
281 0 26 unless exists $$opt{'name'}
285 20 6 if exists $$opt{'os'}
298 0 0 unless (exists $ALLOW_ISA{$name} or exists $ALLOW_REF{$name} or exists $ALLOW_RX{$name} or exists $ALLOW_VALUE{$name})
306 34 49 if (ref $val and exists $ALLOW_ISA{$name})
308 34 0 if &UNIVERSAL::isa($val, $class)
313 0 49 if (ref $val and exists $ALLOW_REF{$name})
314 0 0 if exists $ALLOW_REF{$name}{ref $val}
318 49 0 if (defined $val and not ref $val and exists $ALLOW_RX{$name})
320 49 0 if $val =~ /$rx/
325 0 0 if (not ref $val and exists $ALLOW_VALUE{$name})
326 0 0 if exists $ALLOW_VALUE{$name}{$val}
355 0 23 unless defined $name
363 14 9 if (defined $os)
374 0 49 unless defined $val
377 0 49 unless &_value_is_allowed('name', $val)
388 0 34 unless &_value_is_allowed('os', $val)
398 8 21 unless $self->get_os