| blib/lib/Template/Direct/Maths.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 33 | 40 | 82.5 |
| line | true | false | branch |
|---|---|---|---|
| 72 | 2 | 5 | if ($$self{'Print'}) |
| 95 | 1 | 36 | if ($raw =~ s/^\(//) |
| 99 | 1 | 0 | if $current |
| 103 | 1 | 36 | $raw =~ s/\)$// ? : |
| 105 | 37 | 0 | if ($raw ne '') |
| 111 | 3 | 34 | if ($sane =~ /^\$(.+)$/) |
| 116 | 0 | 37 | unless $sane |
| 119 | 37 | 0 | if defined $sane and scalar $sane . '' ne '' |
| 122 | 1 | 36 | if $end and @depths |
| 138 | 0 | 22 | if $len == 1 |
| 140 | 7 | 15 | if ($len > 3 and not +($len - 1) % 2) { } |
| 15 | 0 | elsif ($len == 3) { } | |
| 156 | 4 | 11 | if ref $a eq 'ARRAY' |
| 157 | 4 | 11 | if ref $b eq 'ARRAY' |
| 158 | 4 | 11 | if $o eq '+' |
| 159 | 1 | 10 | if $o eq '-' |
| 160 | 5 | 5 | if $o eq '*' |
| 161 | 3 | 2 | if $o eq '/' |
| 162 | 1 | 1 | if $o eq '%' |
| 163 | 1 | 0 | if $o eq '^' |