Branch Coverage

blib/lib/Algorithm/Dependency/Weight.pm
Criterion Covered Total %
branch 8 20 40.0


line true false branch
105 0 3 &_INSTANCE($args{'source'}, 'Algorithm::Dependency') ? :
0 3 unless my $source = &_INSTANCE($args{'source'}, 'Algorithm::Dependency') ? $args{'source'}->source : &_INSTANCE($args{'source'}, 'Algorithm::Dependency::Source')
109 0 3 unless my $algdep = 'Algorithm::Dependency'->new('source', $source, 'ignore_orphans', 1)
163 34 0 defined &_STRING($_[0]) ? :
165 34 0 unless $self->{'weight'}{$id}
170 0 34 unless my $items = $self->{'algdep'}->schedule($_[0])
187 0 0 unless my $items = $self->{'algdep'}->schedule(@_)
210 10 0 if ($self->{'weight'}{$name})
214 0 0 unless $hash{$name} = $self->weight($name)
237 0 1 unless defined $items[0]