Condition Coverage

blib/lib/Math/PartialOrder/Base.pm
Criterion Covered Total %
condition 49 141 34.7


and 3 conditions

line !l l&&!r l&&r condition
91 0 0 0 $^W and $VERBOSE
146 187 0 0 defined $attrs and %$attrs
214 0 4 370 $h1->has_type($type) and $h2->has_type($type)
220 0 2 368 $h1->has_parent($type, $parent) and $h2->has_parent($type, $parent)
258 15 28 5 @lubs and scalar @lubs > 1
304 0 0 0 $_[0]->has_types($_[1], $_[2]) && grep({$_ eq $_[2];} $_[0]->parents($_[1]))
315 0 9 11 defined $_[1] && defined $_[2] && $_[0]->has_type($_[1]) && $_[0]->has_type($_[2]) && $_[0]->iterate_cp_step(\&_type_search_callback, {'start', [$_[0]->parents($_[1])], 'find', $_[2], 'return', ''})
348 0 15 10 $WANT_USER_HOOKS && defined($a = _subsumes_user($_[1], $_[2]))
5 5 5 ref $_[0] && $_[0]->has_types($_[1], $_[2]) && $_[0]->has_ancestor($_[2], $_[1])
384 15 0 10 ref $_[0] && ref $_[0] eq 'CODE'
395 0 0 0 $WANT_USER_HOOKS && defined($ans = _psubsumes_user($_[1], $_[2]))
0 0 0 ref $_[0] && $_[0]->has_types($_[1], $_[2]) && $_[0]->has_ancestor($_[2], $_[1])
429 0 0 0 ref $_[0] && ref $_[0] eq 'CODE'
446 0 0 0 defined $_[1] and defined $_[2]
0 0 0 defined $_[1] and defined $_[2] and $_[1] eq $_[2]
457 0 0 8 defined $_[1] and defined $_[2]
0 5 3 defined $_[1] and defined $_[2] and $_[1] eq $_[2]
573 0 0 0 defined $_ and exists $$stratah{$_}
664 0 0 0 $^W and $VERBOSE
750 0 5 15 $WANT_USER_HOOKS && defined($l = _lub_user($_[1], $_[2]))
0 0 5 ref $_[0] && $_[0]->has_types($_[1], $_[2])
806 35 0 10 ref $_[1] && ref $_[1] eq 'CODE'
35 0 0 ref $_[2] && ref $_[2] eq 'CODE'
868 32 0 59 @t1q || @t2q and $step >= 0
939 0 10 15 $WANT_USER_HOOKS && defined($l = _glb_user($_[1], $_[2]))
0 5 5 ref $_[0] && $_[0]->has_types($_[1], $_[2])
1046 0 0 0 ref $self and $self =~ /=HASH\(/
1054 0 0 0 exists $$self{'attributes'} and exists $$self{'attributes'}{$type}
1066 0 6 99 defined $_[0]->_attributes and exists $_[0]->_attributes->{$_[0]}
1095 0 0 0 defined $next and defined $callback
1152 0 0 0 defined $next and defined $callback
1199 0 0 10 defined $next and defined $callback
1252 0 0 0 defined $_[2] and not defined $_[2]{'start'}
1261 0 26 0 defined $_[2] and not defined $_[2]{'start'}

or 2 conditions

line l !l condition
67 0 0 shift() || {}
862 32 0 shift() || {}
863 32 0 shift() || {}

or 3 conditions

line l !l&&r !l&&!r condition
446 0 0 0 defined $_[1] || defined $_[2]
0 0 0 defined $_[1] and defined $_[2] and $_[1] eq $_[2] or not defined $_[1] || defined $_[2]
457 5 0 0 defined $_[1] || defined $_[2]
3 0 5 defined $_[1] and defined $_[2] and $_[1] eq $_[2] or not defined $_[1] || defined $_[2]
558 0 0 0 not $cmp or $cmp < 0
606 0 0 0 not exists $_[2]{'laststep'}{$_[1]} or $_[2]{'laststep'}{$_[1]} < $_[2]{'step'}
666 0 0 0 ref $h || $h
777 0 0 25 $_[0] eq $TYPE_TOP || $_[1] eq $TYPE_TOP
868 52 7 32 @t1q || @t2q
955 5 0 30 !defined($_[0]) || (!defined($_[1]) ? [undef] : ($_[0] eq $TYPE_TOP ? [$_[1]] : ($_[1] eq $TYPE_TOP ? [$_[0]] : undef)))
1226 35 5 0 not defined $$prev{$_}{$t} or $$prev{$_}{$t} < $$args{'step'}