blib/lib/Comics/Plugin/TheWarehouse.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
register
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #! perl
2  
3 use strict;
4 use warnings;
5  
6 package Comics::Plugin::TheWarehouse;
7  
8 use parent qw(Comics::Fetcher::Single);
9  
10 our $disabled = 1; # seems defunct
11  
12 our $VERSION = "0.02";
13  
14 sub register {
15 shift->SUPER::register
16 ( { name => "The Warehouse",
17 url => "http://www.warehousecomic.com/",
18 pat =>
19 qr{ <img \s+
20 src="(?<url>http://warehousecomic.com/wp-content/uploads/
21 (?<image>\d+/\d+/\d+-\d+-\d+-.*?\.\w+))" \s+
22 alt="(?<alt>.*?)" \s+
23 title="(?<title>.*?)" \s+
24 />
25 }x,
26 } );
27 }
28  
29 # Important: Return the package name!
30 __PACKAGE__;