| blib/lib/Graph/Traverse.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 34 | 39 | 87.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 38 | 1 | 16 | 0 | defined $opts && $opts->{'weights'} |
| 39 | 1 | 0 | 16 | defined $opts && $opts->{'hash'} |
| 42 | 1 | 3 | 13 | defined $opts && ($opts->{'all'} // 1) |
| 94 | 154 | 17 | 3 | defined $max_weight and $newvalue > $max_weight |
| 110 | 135 | 0 | 18 | defined $weight{$s} and $newvalue < $weight{$s} |
| line | l | !l | condition |
|---|---|---|---|
| 48 | 2 | 14 | $opts->{'attribute'} // 'weight' |
| 51 | 4 | 12 | $opts->{'default'} // 1 |
| 55 | 2 | 15 | (defined $opts ? $opts->{'next'} : undef) // 'successors' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 75 | 13 | 0 | 7 | $self->get_vertex_attribute($s, $attr) // $incr |
| 80 | 14 | 4 | 136 | $self->get_edge_attribute($t, $s, $attr) // $self->get_edge_attribute($s, $t, $attr) |
| 18 | 136 | 0 | ($self->get_edge_attribute($t, $s, $attr) // $self->get_edge_attribute($s, $t, $attr)) // $incr | |
| 103 | 104 | 6 | 58 | $save_all or $terminal{$s} |
| 106 | 135 | 18 | 18 | not defined $path{$s} or $newvalue < $weight{$s} |
| 136 | 79 | 18 | 13 | not defined $$ret{$v->{'vertex'}} or $$ret{$v->{'vertex'}}{'weight'} > $v->{'weight'} |