Branch Coverage

blib/lib/Build/Hopen/G/DAG.pm
Criterion Covered Total %
branch 23 58 39.6


line true false branch
118 0 1 if $@
119 1 0 if $self->_init_graph->vertices == 1
126 0 1 if $@
130 0 1 unless $order[$#order] == $self->_final
143 1 2 unless (defined $node)
168 0 1 if eval { do { $pred->DOES('Build::Hopen::G::Goal') } }
172 0 1 unless ($links)
209 1 1 if (eval { do { $node->DOES('Build::Hopen::G::Goal') } }) { }
210 0 1 if $args{'generator'}
215 1 0 if keys %{$node->outputs;}
217 0 1 if $args{'generator'}
242 0 3 unless my $self = shift()
243 0 3 unless my $name = shift()
248 2 1 unless $self->default_goal
272 0 1 unless my $self = shift()
276 0 1 if (not defined $in_edge) { }
1 0 elsif (not defined $op2) { }
296 0 0 $link ? :
306 1 0 if $link
325 0 0 unless my $self = shift()
326 0 0 unless my $node = shift()
327 0 0 if $self->_graph->has_vertex($node)
354 0 0 unless my $self = shift()
355 0 0 unless my $op = shift()
357 0 0 if $self->_init_graph->has_vertex($op)
362 0 0 if ($first) { }
383 0 0 unless my $self = shift()
401 0 2 unless my $self = shift()
405 0 2 unless $self->has_custom_name