Branch Coverage

blib/lib/Algorithm/Dependency/Weight.pm
Criterion Covered Total %
branch 8 18 44.4


line true false branch
111 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')
117 0 3 unless my $algdep = 'Algorithm::Dependency'->new('source', $source, 'ignore_orphans', 1)
169 0 34 unless my $id = _IDENTIFIER(shift @_)
170 34 0 unless $$self{'weight'}{$id}
176 0 34 unless my $items = $$self{'algdep'}->schedule($_[0])
199 10 0 if ($$self{'weight'}{$name})
203 0 0 unless $hash{$name} = $self->weight($name)
226 0 1 unless defined $items[0]