Branch Coverage

blib/lib/Math/SparseVector.pm
Criterion Covered Total %
branch 18 32 56.2


line true false branch
51 0 46 unless (defined $key and defined $value)
56 0 46 if ($value == 0)
69 0 67 unless (defined $key)
74 67 0 if (defined $$self{$key})
95 2 1 if (scalar @indices == 0)
131 0 1 unless (defined $key)
144 0 2 unless (defined $v2)
151 5 8 if (defined $$self{$key}) { }
180 1 0 if ($vnorm != 0)
190 0 1 unless (defined $v2)
199 1 0 if (scalar $v2->keys < scalar $self->keys) { }
203 3 2 if (defined $$self{$key})
212 0 0 if (defined $$v2{$key})
227 0 2 unless (defined $divisor)
232 0 2 if ($divisor == 0)
249 0 1 unless (defined $v2)