Condition Coverage

blib/lib/Graph/Easy/Introspect.pm
Criterion Covered Total %
condition 142 256 55.4


and 3 conditions

line !l l&&!r l&&r condition
62 0 0 31 ($format // "") eq "ascii" and not $self->{'_introspect_captured'}
140 50 0 18 $px > $x2 and $py >= $y1
50 0 18 $px > $x2 and $py >= $y1 and $py <= $y2
141 34 0 16 $px < $x1 and $py >= $y1
34 0 16 $px < $x1 and $py >= $y1 and $py <= $y2
142 17 0 17 $py > $y2 and $px >= $x1
17 0 17 $py > $y2 and $px >= $x1 and $px <= $x2
143 0 0 17 $py < $y1 and $px >= $x1
0 0 17 $py < $y1 and $px >= $x1 and $px <= $x2
164 0 0 110 defined $att and ref $att eq "HASH"
187 0 0 31 defined $att and ref $att eq "HASH"
190 0 0 31 defined $graph_att and ref $graph_att eq "HASH"
288 0 0 6 $tl and $br
359 2 0 0 $cy < $y1 and $cx >= $x1
2 0 0 $cy < $y1 and $cx >= $x1 and $cx <= $x2
18 0 18 $cx > $x2 and $cy >= $y1
18 2 16 $cx > $x2 and $cy >= $y1 and $cy <= $y2
19 0 1 $cx < $x1 and $cy >= $y1
19 0 1 $cx < $x1 and $cy >= $y1 and $cy <= $y2
0 0 19 $cy > $y2 and $cx >= $x1
0 2 17 $cy > $y2 and $cx >= $x1 and $cx <= $x2
394 0 0 19 $cy < $y1 and $cx >= $x1
0 2 17 $cy < $y1 and $cx >= $x1 and $cx <= $x2
32 2 2 $cx > $x2 and $cy >= $y1
34 0 2 $cx > $x2 and $cy >= $y1 and $cy <= $y2
19 0 15 $cx < $x1 and $cy >= $y1
19 0 15 $cx < $x1 and $cy >= $y1 and $cy <= $y2
19 0 0 $cy > $y2 and $cx >= $x1
19 0 0 $cy > $y2 and $cx >= $x1 and $cx <= $x2
510 0 31 0 defined $l && $l ne ''
528 0 0 69 defined $l && $l ne ''
581 0 34 1 not $b and eval { do { $edge->bidirectional } } // 0
595 0 34 1 defined $l && $l ne ''
629 2 0 35 $is_label and not defined $label_x
662 1 0 34 not $is_self_loop and $from_port
1 33 1 not $is_self_loop and $from_port and @path > 1
680 0 0 3 exists $by_pos{$cur} and not $visited{$cur}
690 8 2 2 exists $by_pos{$nk} and not $visited{$nk}
767 2 0 1 $prev && $is_straight_type{$prev->{'type'}}
847 0 0 6 defined $l && $l ne ''
936 34 29 6 scalar @{$n_ast->{'edges_in'};} == 0 && scalar @{$n_ast->{'edges_out'};} == 0

or 2 conditions

line l !l condition
62 31 0 $format // ""
64 31 0 eval { do { $self->attribute("align") } } // "left"
66 31 0 $label //= []
67 31 0 eval { do { $self->attribute("graph", "label-pos") } } // "top"
98 186 0 $$cols{$c->{'x'}} // 0
186 0 $$rows{$c->{'y'}} // 0
186 0 $c->{'w'} // 0
186 0 $c->{'h'} // 0
186 0 $c->name // ""
121 145 0 $node->x // 0
122 145 0 $node->y // 0
123 145 0 $node->{'cx'} // 1
124 145 0 $node->{'cy'} // 1
423 37 0 $c->{'type'} // 0
465 31 0 $self->{'_introspect_char_pos'} || {}
511 31 0 eval { do { $self->attribute("flow") } } // "default"
518 69 0 $node->x // 0
519 69 0 $node->y // 0
520 69 0 $node->{'cx'} // 1
521 69 0 $node->{'cy'} // 1
523 69 0 $char_pos->{$cell_key} // {}
524 69 0 $cp->{'char_x'} // 0
525 69 0 $cp->{'char_y'} // 0
526 0 0 $node->width // 0
527 0 0 $node->height // 0
552 69 0 $node->width // 0
69 0 $node->height // 0
69 0 $component{$name} // 0
581 1 34 eval { do { $edge->bidirectional } } // 0
607 68 0 $side // "unknown"
623 37 0 $c->{'type'} // 0
627 37 0 $char_pos->{$ckey} // {}
637 37 0 $cp->{'char_x'} // 0
638 37 0 $cp->{'char_y'} // 0
639 37 0 $cp->{'render_w'} // 1
640 37 0 $cp->{'render_h'} // 1
731 37 0 $$char_pos{"$p->{'x'},$p->{'y'}"} // {}
732 37 0 $cp2->{'char_x'} // 0
37 0 $cp2->{'render_w'} // 1
733 37 0 $cp2->{'char_y'} // 0
37 0 $cp2->{'render_h'} // 1
839 6 0 $bx1 // 0
6 0 $by1 // 0
6 0 $bx2 // 0
6 0 $by2 // 0
880 34 0 $e_ast->{'from_side'} || 'unknown'
895 34 0 $e_ast->{'to_side'} || 'unknown'

or 3 conditions

line l !l&&r !l&&!r condition
154 37 0 0 $CELL_TYPE_NAME{$type_code} // "UNKNOWN_$type_code"
320 136 0 0 $node_ast->{'width'} || $nw
321 136 0 0 $node_ast->{'height'} || $nh
359 16 1 19 $cx > $x2 and $cy >= $y1 and $cy <= $y2 or $cx < $x1 and $cy >= $y1 and $cy <= $y2
1 17 2 $cx > $x2 and $cy >= $y1 and $cy <= $y2 or $cx < $x1 and $cy >= $y1 and $cy <= $y2 or $cy > $y2 and $cx >= $x1 and $cx <= $x2
394 2 15 19 $cx > $x2 and $cy >= $y1 and $cy <= $y2 or $cx < $x1 and $cy >= $y1 and $cy <= $y2
15 0 19 $cx > $x2 and $cy >= $y1 and $cy <= $y2 or $cx < $x1 and $cy >= $y1 and $cy <= $y2 or $cy > $y2 and $cx >= $x1 and $cx <= $x2
526 69 0 0 $cp->{'render_w'} // ($node->width // 0)
527 69 0 0 $cp->{'render_h'} // ($node->height // 0)
833 6 0 3 not defined $bx1 or $nx1 < $bx1
834 6 0 3 not defined $by1 or $ny1 < $by1
835 6 1 2 not defined $bx2 or $nx2 > $bx2
836 6 2 1 not defined $by2 or $ny2 > $by2