Plagger/Mechanize.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Plagger::Mechanize;
2 use strict;
3 use base qw( WWW::Mechanize );
4  
5 sub new {
6 my $class = shift;
7 my $self = $class->SUPER::new(@_);
8  
9 my $conf = Plagger->context->conf->{user_agent};
10 $self->agent( $conf->{agent} || "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" );
11 $self->timeout( $conf->{timeout} || 15 );
12  
13 $self;
14 }
15  
16 1;