Branch Coverage

blib/lib/Data/Hopen/G/DAG.pm
Criterion Covered Total %
branch 58 60 96.6


line true false branch
151 1 29 if $@
152 28 1 if $self->_init_graph->vertices == 1
159 1 28 if $@
163 0 28 unless $Data::Hopen::G::DAG::QUIET or &refaddr($order[$#order]) == &refaddr(scalar $self->_final)
170 27 1 unless ($Data::Hopen::G::DAG::QUIET)
176 1 26 if $self->_graph->is_predecessorless_vertex($goal)
193 5 23 unless defined $merge_strategy_idx
206 23 61 unless (defined $node)
232 0 35 if eval { do { $pred->DOES('Data::Hopen::G::Goal') } }
237 27 8 unless ($links)
288 23 38 if (eval { do { $node->DOES('Data::Hopen::G::Goal') } }) { }
289 1 22 if $args{'visitor'}
294 20 3 if keys %{$node->outputs;}
296 1 37 if $args{'visitor'}
325 1 16 unless my $self = shift()
326 1 15 unless my $name = shift()
331 14 1 unless $self->default_goal
371 1 20 unless my $self = shift()
378 12 8 if (@_ == 3) { }
5 3 elsif (@_ == 2) { }
389 9 4 $link ? :
398 11 6 if ($link)
421 1 1 if $self->_graph->has_vertex($node)
448 1 5 unless my $self = shift()
449 1 4 unless my $op = shift()
451 1 3 if $self->_init_graph->has_vertex($op)
456 1 2 if ($first) { }
477 1 2 unless my $self = shift()
495 1 16 unless my $self = shift()
499 1 15 unless $self->has_custom_name