blib/lib/Image/Base.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 49 | 56 | 87.5 |
line | true | false | branch |
---|---|---|---|
65 | 0 | 0 | wantarray ? : |
74 | 0 | 0 | unless $self->can('xy') |
82 | 0 | 0 | unless $obj->can('xy') |
104 | 125 | 16 | if ($dx >= $dy) { } |
107 | 11 | 114 | if $x0 > $x1 |
110 | 6 | 119 | $y1 > $y0 ? : |
115 | 61 | 576 | if (($rem += $dy) >= 0) |
123 | 2 | 14 | if $y0 > $y1 |
126 | 2 | 14 | $x1 > $x0 ? : |
131 | 2 | 66 | if (($rem += $dx) >= 0) |
230 | 1 | 10 | if (($a = ($x1 - $x0) / 2) <= 0.5 or ($b = ($y1 - $y0) / 2) <= 0.5) |
260 | 5 | 5 | $fill ? : |
270 | 6 | 4 | $x ? : |
276 | 18 | 4 | if ($d < 0) { } |
277 | 9 | 9 | unless ($fill) |
302 | 6 | 2 | if ($d < 0) { } |
319 | 5 | 5 | if ($fill) { } |
340 | 19 | 31 | if ($x0 == $x1) { } |
345 | 23 | 8 | if ($fill) { } |
354 | 7 | 1 | if (++$y0 <= $y1) |
356 | 5 | 2 | if ($y0 < $y1) |
379 | 6 | 11 | if ($w < 2 or $h < 2) |
396 | 8 | 3 | if ($fill) { } |
413 | 3 | 8 | if ($w > $h) { } |
422 | 4 | 4 | if (($rem += $h) >= 0) { } |
428 | 0 | 4 | unless ($fill) |
444 | 10 | 2 | if (($rem += $w) >= 0) |
458 | 8 | 3 | if ($fill) { } |