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

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 17 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::CommitStrip;
7  
8 use parent qw(Comics::Fetcher::Cascade);
9  
10 our $VERSION = "1.02";
11  
12 our $name = "CommitStrip";
13 our $url = "https://www.commitstrip.com/";
14 our @patterns =
15 ( qr{ <a \s+
16 href="(?<url>https://www.commitstrip.com/
17 \d\d\d\d / \d\d / \d\d / .*? /)">
18 }x,
19 qr{ <img \s+
20 class="aligncenter \s+ size-full.*?" \s+
21 src="(?<url>https://www.commitstrip.com/wp-content/uploads/
22 \d+/\d+/
23 (?<image>.*?\.\w+))" \s+
24 alt="(?<alt>.*?)" \s+
25 width="\d+" \s+
26 height="\d+" \s+ />
27 }x
28 );
29  
30 # Important: Return the package name!
31 __PACKAGE__;