Condition Coverage

blib/lib/Graph.pm
Criterion Covered Total %
condition 209 259 80.6


and 3 conditions

line !l l&&!r l&&r condition
172 791 0 106 ref $class and $class->isa("Graph")
198 884 9 1 $vflags & 1 and $vflags & 2
201 874 18 1 $eflags & 1 and $eflags & 2
340 38091 60 55 &is_hyperedged && &is_directed
344 65 36504 1293 not $ensure and @non_exist
353 31 19966 4 $Ea and @_ != $Ea + 1
355 19966 14 17 &is_hyperedged && $directed
374 1234 14 5 &is_hyperedged && &is_directed
508 468 6 2 &is_hyperedged && &is_directed
516 324 0 2 &is_hyperedged && &is_directed
522 4 6 1 &is_hyperedged && &is_directed
527 286 0 1 &is_hyperedged && &is_directed
533 215 0 1 &is_hyperedged && &is_directed
630 1 8 437 @i and $g->[3]->del_path(\@i)
687 0 0 232 @_ > 1 and &has_vertex
690 202 25 5 &is_undirected and &is_self_loop_vertex
696 0 0 208 @_ > 1 and &has_vertex
699 202 5 1 &is_undirected and &is_self_loop_vertex
704 0 0 42 @_ > 1 and &has_vertex
1040 17722 20 14 &is_hyperedged && &is_directed
1220 0 8 15 ref $src eq "ARRAY" and !defined($dst) || ref $dst eq 'ARRAY'
1232 5 16 32 ($v->contains($_->[0]) || $v->contains($_->[1])) && ($valid->contains($_->[0]) && $valid->contains($_->[1]))
1522 2 1 1098 @_ == 1 and ref $_[0] eq "ARRAY"
1557 0 80 0 $^P && $] < 5.009003
1580 10 2 0 exists $opt{'edges'} and exists $opt{'edges_fill'}
1593 12 0 0 $p > 1 and not $g->countedged || $g->multiedged
1606 280 6150 6066 $q and $q == 1 || rand() <= $q
6150 2 6064 $q and $q == 1 || rand() <= $q and not exists $v1_v2{$v1}{$v2}
6152 37 6027 $q and $q == 1 || rand() <= $q and not exists $v1_v2{$v1}{$v2} and $is_directed ? 1 : !exists $v1_v2{$v2}{$v1}
1781 2 1 2 &is_directed && &is_acyclic
1856 377 1870 0 defined $a and ref $a ne "ARRAY"
1858 377 46 1824 defined $a and $a->[0] == $g->[1]
1961 10 8 2 $g->has_union_find and $g->vertices == 1
2111 1924 0 14895 $e->[0] eq $u and $e->[1] eq $v
2120 1621 15912 1803 defined $state->{'pred'}{$u} and $state->{'pred'}{$u} ne $v
17533 896 907 defined $state->{'pred'}{$u} and $state->{'pred'}{$u} ne $v and $state->{'num'}{$v} < $state->{'num'}{$u}
2354 13 0 148 defined $d{$u} and defined $d{$v}
2357 99 48 1 defined $d and $d{$v} > $d{$u} + $d
2477 100 488 40 $u ne $v and !defined($max) || $l > $max
2481 100 510 18 $u ne $v and !defined($min) || $l < $min
2507 0 7 2 defined $l and !defined($max) || $l > $max
2518 0 7 2 defined $l and !defined($max) || $l > $max
2535 0 806 289 defined $l and !defined($max) || $l > $max
2552 0 9 0 defined $l and !defined($min) || $l < $min
2564 0 7 2 defined $l and !defined($min) || $l < $min
2582 0 69 20 defined $x and $x < $radius
2595 0 3 7 defined $r and $r != $Inf
2598 0 0 53 defined $e and $e != $Inf
2615 270 38 418 defined $A[0] and $u ne $A[0]
2616 126 19 163 defined $A[1] and $v ne $A[1]
2652 6 4 2 $m and $g->get_edge_count($u, @v) > 1
2691 0 0 31 exists $d1{$da} and keys %{$d0{$da};} == keys %{$d1{$da};}
2694 4 0 41 exists $d1{$da}{$_} && $d0{$da}{$_} == $d1{$da}{$_}
2728 4 60 15 !$c->contains("$u-$_") && $g->has_edge($u, $_)

or 2 conditions

line l !l condition
1069 5 0 $g->get_vertex_attributes_by_id($v, $_) || {}
1075 1 49 $g->get_vertex_attributes($_) || {}
1083 12 1 $g->get_edge_attributes_by_id(@$e, $_) || {}
1965 0 18 $opt{'super_component'} || \&Graph::_super_component
2230 0 1 $opt{'super_component'} || \&Graph::_super_component
2256 1010 63 $etc->{$r} || 0
2263 6 1010 $etc->{$s} || 0
2483 15 3 $p || [$t->path_vertices($u, $v)]

or 3 conditions

line l !l&&r !l&&!r condition
57 0 0 0 eval { do { $Inf = "Inf" } } or eval { do { $Inf = "Inf" } }
0 0 0 eval { do { $Inf = "Inf" } } or eval { do { $Inf = "Inf" } } or eval { do { $Inf = "Inf" } }
204 106 786 0 ref $class || $class
230 12 46 834 $is_hyper || $eflags & 18446744073709551611
292 5 9 1391 &is_multivertexed or &is_countvertexed
341 289 55 37862 $V->[1] & 8 or $deep
382 18 10 339 &is_multiedged or &is_countedged
562 264 71 42 not defined $radius or $radius-- > 0
912 1544 14268 2237 $is_vertex or $is_undirected
14268 116 2121 $is_vertex or $is_undirected or $is_multi
913 1544 129 14255 $is_vertex or $is_multi
1220 19 4 0 !defined($dst) || ref $dst eq 'ARRAY'
1593 0 0 0 $g->countedged || $g->multiedged
1606 0 6066 6150 $q == 1 || rand() <= $q
2262 1010 6 4236 not defined $etc->{$s} or $etc_r + $t < $etc->{$s}
2303 0 24 58 $seen->size == $V or $u eq $v
2305 0 41 27 not @path or $path[-1] ne $u
2477 15 35 478 !defined($max) || $l > $max
2481 15 3 510 !defined($min) || $l < $min
2507 1 2 6 !defined($max) || $l > $max
2518 1 1 7 !defined($max) || $l > $max
2535 155 211 729 !defined($max) || $l > $max
2552 1 0 8 !defined($min) || $l < $min
2564 1 2 6 !defined($min) || $l < $min
2628 8 8 16 &is_multiedged or &is_countedged
2640 8 8 16 &is_multiedged or &is_countedged
2647 8 8 16 &is_countedged || &is_multiedged