Condition Coverage

blib/lib/Graph.pm
Criterion Covered Total %
condition 204 255 80.0


and 3 conditions

line !l l&&!r l&&r condition
172 792 0 1496 ref $class and $class->isa("Graph")
200 2268 16 1 $vflags & 1 and $vflags & 2
203 2258 25 1 $eflags & 1 and $eflags & 2
336 77445 60 55 &is_hyperedged && &is_directed
340 123 75788 1305 not $ensure and @non_exist
349 31 58487 4 $Ea and @_ != $Ea + 1
351 58487 14 17 &is_hyperedged && $directed
370 1235 15 6 &is_hyperedged && &is_directed
511 1661 6 2 &is_hyperedged && &is_directed
519 329 0 2 &is_hyperedged && &is_directed
525 4 6 1 &is_hyperedged && &is_directed
530 1473 0 1 &is_hyperedged && &is_directed
536 215 0 1 &is_hyperedged && &is_directed
633 1 8 450 @i and $g->[3]->del_path(\@i)
690 0 0 232 @_ > 1 and &has_vertex
693 202 25 5 &is_undirected and &is_self_loop_vertex
699 0 0 208 @_ > 1 and &has_vertex
702 202 5 1 &is_undirected and &is_self_loop_vertex
707 0 0 42 @_ > 1 and &has_vertex
959 40764 17 10 &is_hyperedged && &is_directed
1159 45 0 22 not @$p || @$x and @$r
1188 0 1207 15 ref $src eq "ARRAY" and !defined($dst) || ref $dst eq 'ARRAY'
1200 5 5768 8463 ($v->contains($_->[0]) || $v->contains($_->[1])) && ($valid->contains($_->[0]) && $valid->contains($_->[1]))
1501 2 1 2469 @_ == 1 and ref $_[0] eq "ARRAY"
1536 0 84 0 $^P && $] < 5.009003
1545 10 2 0 exists $opt{'edges'} and exists $opt{'edges_fill'}
1569 12 0 0 $p > 1 and not $g->countedged || $g->multiedged
1581 280 7782 6071 $q and $q == 1 || rand() <= $q
7782 44 6027 $q and $q == 1 || rand() <= $q and not $g->has_edge($v1, $v2)
1754 2 1 2 &is_directed && &is_acyclic
1944 413 1872 0 defined $a and ref $a ne "ARRAY"
1946 413 46 1826 defined $a and $a->[0] == $g->[1]
2049 10 8 2 $g->has_union_find and $g->vertices == 1
2206 1924 0 14931 $e->[0] eq $u and $e->[1] eq $v
2215 1159 15948 2265 defined $state->{'pred'}{$u} and $state->{'pred'}{$u} ne $v
17107 1358 907 defined $state->{'pred'}{$u} and $state->{'pred'}{$u} ne $v and $state->{'num'}{$v} < $state->{'num'}{$u}
2454 13 0 159 defined $d{$u} and defined $d{$v}
2457 99 59 1 defined $d and $d{$v} > $d{$u} + $d
2577 100 488 40 $u ne $v and !defined($max) || $l > $max
2581 100 510 18 $u ne $v and !defined($min) || $l < $min
2607 0 7 2 defined $l and !defined($max) || $l > $max
2618 0 7 2 defined $l and !defined($max) || $l > $max
2635 0 806 289 defined $l and !defined($max) || $l > $max
2652 0 9 0 defined $l and !defined($min) || $l < $min
2664 0 7 2 defined $l and !defined($min) || $l < $min
2682 0 69 20 defined $x and $x < $radius
2695 0 3 7 defined $r and $r != $Inf
2698 0 0 53 defined $e and $e != $Inf
2715 270 38 418 defined $A[0] and $u ne $A[0]
2716 126 19 163 defined $A[1] and $v ne $A[1]
2752 6 4 2 $m and $g->get_edge_count($u, @v) > 1
2791 0 0 31 exists $d1{$da} and keys %{$d0{$da};} == keys %{$d1{$da};}
2794 4 0 42 exists $d1{$da}{$_} && $d0{$da}{$_} == $d1{$da}{$_}
2828 8 56 15 !$c->contains("$u-$_") && $g->has_edge($u, $_)

or 2 conditions

line l !l condition
1028 60 0 $g->get_vertex_attributes_by_id($v, $_) || {}
1034 1 49 $g->get_vertex_attributes($_) || {}
1042 64 1 $g->get_edge_attributes_by_id(@$e, $_) || {}
1877 394 11 $colors{$seen} ||= -1
2053 0 18 $opt{'super_component'} || \&Graph::_super_component
2330 0 1 $opt{'super_component'} || \&Graph::_super_component
2356 1025 66 $etc->{$r} || 0
2363 9 1025 $etc->{$s} || 0
2583 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" } }
206 1496 787 0 ref $class || $class
226 19 70 2194 $is_hyper || $eflags & 18446744073709551611
288 4 9 2346 &is_multivertexed or &is_countvertexed
337 289 55 77216 $V->[1] & 8 or $deep
378 43 10 332 &is_multiedged or &is_countedged
565 264 71 42 not defined $radius or $radius-- > 0
1159 32 13 22 @$p || @$x
1188 1218 4 0 !defined($dst) || ref $dst eq 'ARRAY'
1569 0 0 0 $g->countedged || $g->multiedged
1581 0 6071 7782 $q == 1 || rand() <= $q
2362 1025 9 4243 not defined $etc->{$s} or $etc_r + $t < $etc->{$s}
2403 0 29 63 $seen->size == $V or $u eq $v
2405 0 41 33 not @path or $path[-1] ne $u
2577 15 35 478 !defined($max) || $l > $max
2581 15 3 510 !defined($min) || $l < $min
2607 1 2 6 !defined($max) || $l > $max
2618 1 1 7 !defined($max) || $l > $max
2635 155 211 729 !defined($max) || $l > $max
2652 1 0 8 !defined($min) || $l < $min
2664 1 2 6 !defined($min) || $l < $min
2728 8 8 16 &is_multiedged or &is_countedged
2740 8 8 16 &is_multiedged or &is_countedged
2747 8 8 16 &is_countedged || &is_multiedged