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

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
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::Dilbert;
7  
8 # Ceased for political reasons.
9 our $disabled = 1;
10  
11 use parent qw(Comics::Fetcher::Single);
12  
13 our $VERSION = "1.00";
14  
15 our $name = "Dilbert";
16 our $url = "http://dilbert.com/";
17 our $pattern =
18 qr{ <img \s+
19 class="img-responsive \s img-comic" \s+
20 width="\d+" \s+
21 height="\d+" \s+
22 alt="(?<alt>[^"]+)" \s+
23 src="(?<url>(?:https?:)?//assets.amuniversal.com/
24 (?<image>.*?))" \s+ />
25 }x;
26  
27 # Important: Return the package name!
28 __PACKAGE__;