blib/lib/Comics/Plugin/SavageChickens.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::SavageChickens;
7  
8 use parent qw(Comics::Fetcher::Single);
9  
10 our $VERSION = "1.00";
11  
12 our $name = "Savage Chickens";
13 our $url = "https://www.savagechickens.com/";
14 our $pattern =
15 qr{ <div \s+ class="entry_content"> \s*
16 <p> \s*
17 <img \s+
18 src="(?<url>https?://www.savagechickens.com/
19 wp-content/uploads/
20 (?<image>.*?\.\w+))" \s+
21 alt="(?<alt>.*?)" \s+
22 width="\d+" \s+ height="\d+" \s*
23 /> \s* </p>
24 }sx;
25  
26 # Important: Return the package name!
27 __PACKAGE__;