lib/Email/Blaster/ConfigNode/Throttled.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond 0.0% 0 / 5 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Email::Blaster::ConfigNode::Throttled;
3  
4 use strict;
5 use warnings 'all';
6 use base 'Email::Blaster::ConfigNode';
7  
8  
9 #==============================================================================
10 sub new
11 {
12 my ($class, $ref) = @_;
13
14 my $s = $class->SUPER::new( $ref );
15
16 $s->{throttle} ||= [ ];
17 map { $_ = $class->SUPER::new( $_ ) } grep { ref($_) && ref($_) eq 'HASH' } @{[ $s->{throttle} ]};
18
19 return $s;
20 }# end new()
21  
22 1;# return true:
23