blib/lib/Template/Plugin/Imager.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 21 | 23 | 91.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Template::Plugin::Imager; | ||||||
2 | |||||||
3 | 2 | 2 | 649445 | use strict; | |||
2 | 5 | ||||||
2 | 87 | ||||||
4 | |||||||
5 | 2 | 2 | 2611 | use Imager; | |||
2 | 93059 | ||||||
2 | 15 | ||||||
6 | 2 | 2 | 1952 | use Template::Plugin; | |||
2 | 6443 | ||||||
2 | 65 | ||||||
7 | |||||||
8 | 2 | 2 | 14 | use base qw/ Template::Plugin /; | |||
2 | 4 | ||||||
2 | 271 | ||||||
9 | |||||||
10 | our $VERSION = 0.01; | ||||||
11 | |||||||
12 | sub new { | ||||||
13 | 1 | 1 | 1 | 40 | my $class = shift; | ||
14 | 1 | 3 | my $context = shift; | ||||
15 | 1 | 0 | 7 | return Imager->new( @_ ) or $class->_throw( "Failed to create Imager\n" ); | |||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | |||||||
20 | __END__ |