blib/lib/App/WRT/Image.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
image_size
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package App::WRT::Image;
2  
3 use strict;
4 use warnings;
5  
6 use base qw(Exporter);
7 our @EXPORT_OK = qw(image_size);
8  
9 use Image::Size;
10  
11 =over
12  
13 =item image_size($path)
14  
15 Returns (width, height) of a variety of image files. Called by icon_markup and
16 line_parse.
17  
18 =cut
19  
20 sub image_size {
21 return imgsize($_[0]);
22 }
23  
24 =back
25  
26 1;