Branch Coverage

blib/lib/Graph/Grammar.pm
Criterion Covered Total %
branch 20 30 66.6


line true false branch
111 8 0 unless (ref $self_rule)
118 3 2 if (@rule and builtin::blessed($rule[-1]) and $rule[-1]->isa("Graph::Grammar::Rule::NoMoreVertices"))
129 18 42 unless &$self_rule($graph, $vertex)
130 0 42 unless defined $graph->degree($vertex)
131 0 42 if $graph->degree($vertex) < $neighbours
132 18 24 if $no_more_vertices and $graph->degree($vertex) > $neighbours
138 12 18 if builtin::blessed($neighbour_rule) and $neighbour_rule->isa("Graph::Grammar::Rule::Edge")
141 12 6 if ($i and builtin::blessed($rule[$i - 1]) and $rule[$i - 1]->isa('Graph::Grammar::Rule::Edge')) { }
143 14 0 if not $matching_neighbours->has($_) and &$neighbour_rule($graph, $_)
149 6 0 if not $matching_neighbours->has($_)
153 9 9 unless $match
159 0 15 if ($DEBUG)
160 0 0 defined $rule_name ? :
165 0 15 if ($DEBUG and $overlaps)
170 15 0 if (ref $action eq 'CODE') { }