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 101 42 9 $skip_newlines and $str eq "\n"
109 101 40 2 $allow_header and $str eq '>'
121 45 0 96 $n >= 0 and $n <= 63
130 4 26 3 $initial and $str eq '&'
136 4 3 23 $initial and $str eq ':'
405 22 2 44 not $fh and defined(my $str_ref = $options{'str_ref'})
411 66 0 2 not $fh and defined(my $filename = $options{'filename'})
422 66 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'}
530 0 0 7 &$put_bit(1) and &$put_n($to)
553 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
570 28 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 10 1 $options{'error_func'} || \&Carp::croak
498 28 2 $edge_iterator ||= \&Graph::Graph6::_edges_iterator_none
585 35 3 $edge_predicate ||= \&Graph::Graph6::_edge_predicate_none

or 3 conditions

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