Branch Coverage

blib/lib/Math/PartialOrder/Loader.pm
Criterion Covered Total %
branch 54 122 44.2


line true false branch
59 0 0 unless defined $opts{'descend'}
60 0 0 if ($opts{'descend'}) { }
63 0 0 if exists $seen{$class}
92 0 5 if ref $file
95 0 5 unless defined $handle
103 5 0 unless defined $args
107 5 0 unless defined $$args{'gtsep'}
111 5 60 if ($gtline =~ /^\s*root\s*=\s*(.*)/i and $1 ne $h->root)
115 20 40 if $gtline =~ /^\s*\#/ or $gtline =~ /^\s*$/
120 35 5 if (defined $super) { }
127 28 12 if (not $h->has_type($sub)) { }
136 0 40 if (%subattrs)
142 35 5 if (@supers)
169 0 5 if ref $file
172 0 5 unless defined $handle
179 5 0 unless defined $args
194 40 0 if defined $_
202 0 40 defined $attrs ? :
35 5 $sub ne $h->root && @supers ? :
217 0 0 unless exists $opts{'nodelabel'}
218 0 0 unless exists $opts{'label_node'}
233 0 0 if (ref $opts{'label_node'} and ref $opts{'label_node'} eq 'CODE') { }
254 0 0 if ($h->can('get_appr_bytype')) { }
283 0 0 if ($Math::PartialOrder::Loader::UNLINK_TMPFILES)
297 0 5 ref $file ? :
298 0 5 unless defined $handle
305 5 0 unless ref $file
312 0 0 ref $file ? :
313 0 0 unless defined $handle
320 0 0 unless ref $file
328 0 5 ref $file ? :
329 0 5 unless defined $handle
333 0 5 unless (defined $h->_retrieve_head($head))
344 5 0 unless ref $file
396 2 3 if $h->can('_store_before')
403 0 40 if defined $attrs
408 0 40 defined $attrs ? :
415 16 24 if $h->can('_store_type')
421 0 5 if $h->can('_store_after')
466 0 5 unless (defined($compat = $h->_retrieve_head($$retr{'Head'})))
475 0 5 if $compat and $h->can('_retrieve_before')
482 0 40 if $compat and $h->can('_retrieve_type_before')
485 40 0 if ($compat and $h->can('_retrieve_type')) { }
494 0 40 if $compat and $h->can('_retrieve_type_after')
497 2 3 if $compat and $h->can('_retrieve_after')
508 0 24 if defined $_[1][$Math::PartialOrder::Loader::_tr_attrs]
519 0 10 unless (ref $head and ref $head eq 'HASH')
525 0 10 unless (defined $$head{'Lversion'})
531 0 10 unless (defined $$head{'Lcompat'})
537 0 10 unless (defined $$head{'Hstring'})
543 0 10 if ($$head{'Lversion'} < $Math::PartialOrder::Loader::BIN_COMPAT)
552 0 10 if ($Math::PartialOrder::Loader::VERSION < $$head{'Lcompat'})
561 0 10 unless (defined $$head{'Class'})
567 0 10 unless (defined $$head{'Cversion'})
573 10 0 if (defined($class = ref $h || $h) and $$head{'Class'} eq $class and $$head{'Cversion'} == $h->VERSION)
581 0 0 unless (defined $$head{'Ccompat'})
587 0 0 if (defined $$head{'Ccompat'}{$class})
588 0 0 if ($$head{'Ccompat'}{$class} > $h->VERSION)
600 0 0 if (defined($compat = $h->_get_bin_compat) and defined $$compat{$$head{'Class'}})
602 0 0 if ($$compat{$$head{'Class'}} > $$head{'Cversion'})
622 7 0 if $Math::PartialOrder::Loader::UNLINK_TMPFILES