blib/lib/Comics/Plugin/WuMo.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::WuMo;
7  
8 use parent qw(Comics::Fetcher::Single);
9  
10 our $VERSION = "0.03";
11  
12 sub register {
13 shift->SUPER::register
14 ( { name => "WuMo",
15 url => "http://wumo.com/",
16 pat =>
17 qr{ <img \s+
18 src="(?<url>/img/wumo/\d+/\d+/
19 (?<image>wumo.+?\.\w+))" \s+
20 alt="(?<alt>.*?)" \s+
21 />
22 }x,
23 } );
24 }
25  
26 # Important: Return the package name!
27 __PACKAGE__;