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

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 18 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::DieselSweeties;
7  
8 use parent qw(Comics::Fetcher::Single);
9  
10 our $VERSION = "0.01";
11  
12 sub register {
13  
14 # Ceased
15  
16 shift->SUPER::register
17 ( { name => "Diesel Sweeties",
18 url => "http://www.dieselsweeties.com/",
19 pat =>
20 qr{ <img \s+
21 class="xomic" \s+
22 title="(?<alt>.*?)" \s+
23 alt="(?<title>.*?)" \s+
24 src="(?<url>/strips666/(?<image>.*?\.\w+))" \s*
25 />
26  
27 }six,
28 } );
29 }
30  
31 # Important: Return the package name!
32 __PACKAGE__;