line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
6
|
|
|
6
|
|
3481
|
use strict; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
146
|
|
2
|
6
|
|
|
6
|
|
29
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
208
|
|
3
|
|
|
|
|
|
|
package WebService::SendGrid::Newsletter::Base; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
30
|
use Carp; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
838
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# Checks if the required arguments are present |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _check_required_args { |
10
|
51
|
|
|
51
|
|
138
|
my ($self, $required_args, %args) = @_; |
11
|
|
|
|
|
|
|
|
12
|
51
|
|
|
|
|
66
|
foreach my $arg ( @{$required_args} ) { |
|
51
|
|
|
|
|
120
|
|
13
|
86
|
100
|
|
|
|
420
|
if (!exists $args{$arg}) { |
14
|
16
|
|
|
|
|
243
|
croak "Required parameter '$arg' is not defined"; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |