Condition Coverage

blib/lib/Graph/Graph6.pm
Criterion Covered Total %
condition 50 68 73.5


and 3 conditions

line !l l&&!r l&&r condition
101 82 38 9 $skip_newlines and $str eq "\n"
109 82 36 2 $allow_header and $str eq '>'
121 37 0 81 $n >= 0 and $n <= 63
130 4 22 3 $initial and $str eq '&'
136 4 3 19 $initial and $str eq ':'
405 18 2 44 not $fh and defined(my $str_ref = $options{'str_ref'})
411 62 0 2 not $fh and defined(my $filename = $options{'filename'})
422 62 0 2 not defined $num_vertices and my $edge_aref = $options{'edge_aref'}
476 27 2 1 not $edge_iterator and my $edge_predicate = $options{'edge_predicate'}
526 0 0 7 &$put_bit(1) and &$put_n($to)
549 0 0 22 $width >= 1 and $width <= 4
0 15 7 $width >= 1 and $width <= 4 and $num_vertices == 1 << $width
15 0 7 $width >= 1 and $width <= 4 and $num_vertices == 1 << $width and $bitpos >= $width
15 7 0 $width >= 1 and $width <= 4 and $num_vertices == 1 << $width and $bitpos >= $width and $v == $num_vertices - 2
566 24 3 7 not $edge_predicate and my $edge_aref = $options{'edge_aref'}
572 12 3 2 $from > $to and $format eq 'graph6'

or 2 conditions

line l !l condition
163 0 1 $error ||= 'Unexpected EOF'
176 0 0 $error ||= 'Unexpected EOF'
301 0 0 $error ||= 'Unexpected EOF'
320 0 0 $error ||= 'Unexpected EOF'
361 10 1 $options{'error_func'} || \&Carp::croak
498 28 2 $edge_iterator ||= \&Graph::Graph6::_edges_iterator_none
581 31 3 $edge_predicate ||= \&Graph::Graph6::_edge_predicate_none

or 3 conditions

line l !l&&r !l&&!r condition
125 6 2 29 $str eq '' or $str eq "\n"
346 3 6 0 $str eq '' or $str eq "\n"