Branch Coverage

blib/lib/Graph/Reader/Graph6.pm
Criterion Covered Total %
branch 5 6 83.3


line true false branch
52 1 5 ref $filename_or_fh ? :
6 0 if (Graph::Graph6::read_graph(ref $filename_or_fh ? 'fh' : 'filename', $filename_or_fh, 'format_func', sub { my($format) = @_; $graph = 'Graph'->new('undirected', $format ne 'digraph6'); $check_countedged = $format eq 'sparse6'; } , 'num_vertices_func', sub { my($n) = @_; $width = length $n - 1; foreach my $i (0 .. $n - 1) { my $name = &$vertex_name_func($i); $graph->add_vertex($name); } ; } , 'edge_func', sub { my($from, $to) = @_; $from = &$vertex_name_func($from); $to = &$vertex_name_func($to); if ($check_countedged and $graph->has_edge($from, $to)) { $graph = _countedged_copy($graph); undef $check_countedged; } ; $graph->add_edge($from, $to); } )) { }
71 2 12 if ($check_countedged and $graph->has_edge($from, $to))