Condition Coverage

blib/lib/Graph/Traverse.pm
Criterion Covered Total %
condition 34 39 87.1


and 3 conditions

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 152 17 3 defined $max_weight and $newvalue > $max_weight
110 135 0 15 defined $weight{$s} and $newvalue < $weight{$s}

or 2 conditions

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'

or 3 conditions

line l !l&&r !l&&!r condition
75 13 0 7 $self->get_vertex_attribute($s, $attr) // $incr
80 14 4 134 $self->get_edge_attribute($t, $s, $attr) // $self->get_edge_attribute($s, $t, $attr)
18 134 0 ($self->get_edge_attribute($t, $s, $attr) // $self->get_edge_attribute($s, $t, $attr)) // $incr
103 102 6 58 $save_all or $terminal{$s}
106 135 15 19 not defined $path{$s} or $newvalue < $weight{$s}
136 79 15 14 not defined $$ret{$v->{'vertex'}} or $$ret{$v->{'vertex'}}{'weight'} > $v->{'weight'}