blib/lib/App/WRT/Image.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 13 | 13 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 19 | 19 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package App::WRT::Image; | ||||||
2 | |||||||
3 | 9 | 9 | 62 | use strict; | |||
9 | 22 | ||||||
9 | 283 | ||||||
4 | 9 | 9 | 45 | use warnings; | |||
9 | 15 | ||||||
9 | 300 | ||||||
5 | |||||||
6 | 9 | 9 | 52 | use base qw(Exporter); | |||
9 | 21 | ||||||
9 | 887 | ||||||
7 | our @EXPORT_OK = qw(image_size); | ||||||
8 | |||||||
9 | 9 | 9 | 5738 | use Image::Size; | |||
9 | 44348 | ||||||
9 | 850 | ||||||
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 | 55 | 55 | 1 | 202 | return imgsize($_[0]); | ||
22 | } | ||||||
23 | |||||||
24 | =back | ||||||
25 | |||||||
26 | 1; |