Branch Coverage

blib/lib/Math/LinearCombination.pm
Criterion Covered Total %
branch 25 42 59.5


line true false branch
27 1 3 if (@_ == 1 and defined ref $_[0] and $_[0]->isa('Math::LinearCombination')) { }
0 3 elsif (@_) { }
52 0 0 if (defined $$ra_args[0] and defined ref $$ra_args[0] and ref $$ra_args[0] eq 'ARRAY')
60 0 0 unless defined(my $coeff = shift @$ra_args)
76 3 8 @_ == 1 && defined ref $_[0] && ref $_[0] eq 'HASH' ? :
78 1 10 unless exists $arg{'var'}
80 1 9 unless UNIVERSAL::can($var, 'id')
81 0 9 unless UNIVERSAL::can($var, 'name')
82 0 9 unless UNIVERSAL::can($var, 'evaluate')
84 1 8 unless exists $arg{'coeff'}
88 2 6 if (exists $$entry{'var'}) { }
89 1 1 unless $$entry{'var'} == $var
109 1 0 wantarray ? :
115 1 0 wantarray ? :
138 0 0 $flip ? :
140 0 0 $flip ? :
169 0 0 if $flip
199 12 2 if ($coeff < 0 or @str_entries)
200 3 9 $coeff > 0 ? :
202 14 0 if (abs $coeff != 1)
209 6 0 @str_entries ? :