Condition Coverage

blib/lib/Graph/Graph6.pm
Criterion Covered Total %
condition 46 68 67.6


and 3 conditions

line !l l&&!r l&&r condition
101 70 29 9 $skip_newlines and $str eq "\n"
109 70 27 2 $allow_header and $str eq '>'
121 32 0 65 $n >= 0 and $n <= 63
130 4 17 3 $initial and $str eq '&'
136 4 2 15 $initial and $str eq ':'
405 0 2 13 not $fh and defined(my $str_ref = $options{'str_ref'})
411 13 0 2 not $fh and defined(my $filename = $options{'filename'})
422 13 0 2 not defined $num_vertices and my $edge_aref = $options{'edge_aref'}
476 1 2 1 not $edge_iterator and my $edge_predicate = $options{'edge_predicate'}
530 0 0 1 &$put_bit(1) and &$put_n($to)
553 0 0 1 $width >= 1 and $width <= 4
0 1 0 $width >= 1 and $width <= 4 and $num_vertices == 1 << $width
1 0 0 $width >= 1 and $width <= 4 and $num_vertices == 1 << $width and $bitpos >= $width
1 0 0 $width >= 1 and $width <= 4 and $num_vertices == 1 << $width and $bitpos >= $width and $v == $num_vertices - 2
570 1 3 7 not $edge_predicate and my $edge_aref = $options{'edge_aref'}
576 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 9 1 $options{'error_func'} || \&Carp::croak
498 2 2 $edge_iterator ||= \&Graph::Graph6::_edges_iterator_none
585 8 3 $edge_predicate ||= \&Graph::Graph6::_edge_predicate_none

or 3 conditions

line l !l&&r !l&&!r condition
125 4 4 24 $str eq '' or $str eq "\n"
346 2 4 0 $str eq '' or $str eq "\n"