Branch Coverage

blib/lib/Math/PartialOrder/Std.pm
Criterion Covered Total %
branch 40 92 43.4


line true false branch
81 6 123 unless defined $_ and exists $$types{$_}
92 1296 0 defined $_[1] && exists $_[0]{'parents'}{$_[1]} ? :
101 61 85 defined $_[1] && exists $_[0]{'children'}{$_[1]} ? :
109 525 0 defined $_[1] && exists $_[0]{'parents'}{$_[1]} ? :
118 3 0 defined $_[1] && exists $_[0]{'parents'}{$_[1]} ? :
145 6 0 $_[0]->has_type($_[1]) ? :
160 0 0 $_[0]->has_type($_[1]) ? :
187 0 338 unless (defined $type)
191 65 273 if $self->has_type($type)
200 273 0 if (@_)
217 0 24 unless $h->has_type($old)
218 0 24 unless (defined $old and defined $new)
224 48 24 if (exists $$h{$_}{$old}) { }
231 21 3 if ($old eq $$h{'root'})
244 0 95 unless $self->has_type($type)
246 18 77 if ($type eq $$self{'root'})
247 0 18 if (@_) { }
256 77 0 if (exists $$prts{$type})
277 3 0 if $self->has_type($_)
284 0 3 unless @_
294 0 3 unless exists $$self{'parents'}{$_}
299 3 0 unless exists $$self{'children'}{$_}
315 18 0 unless $h2->isa($h1)
339 15 0 unless ($h2->isa($h1))
348 0 0 unless $$h1{'root'} eq $$h2{'root'}
363 0 0 if (defined($a2 = $h2->_attributes($_)) and %$a2)
407 0 0 unless exists $$hash{$t1}
408 0 0 unless ($self->has_type($t1))
414 0 0 unless exists $$hash{$t2}
415 0 0 if ($self->has_ancestor($t1, $t2))
431 0 0 unless exists $$hash{$t1}
432 0 0 unless ($self->has_type($t1))
438 0 0 unless exists $$hash{$t2}
439 0 0 if ($self->has_descendant($t1, $t2))
474 60 75 unless @_
476 0 75 unless defined $root
478 69 6 unless defined $$self{'parents'}{$root}
479 69 6 unless defined $$self{'children'}{$root}
488 0 0 exists $_[0]{'parents'}{$_[1]} ? :
0 0 exists $_[1] ? :
499 0 0 exists $_[0]{'children'}{$_[1]} ? :
0 0 exists $_[1] ? :
510 0 0 defined $_[2] ? :
0 280 exists $_[2] ? :
280 0 defined $_[1] ? :
280 350 exists $_[1] ? :