Newsletter/Base.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 CC 3 SCAR 6.9
CC
3
Cov
100%
_check_required_args
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« Newsletter/Lists/Email.pm ↑ Summary Newsletter/Lists.pm »
1 14 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 14 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package WebService::SendGrid::Newsletter::Base;
4  
5 14 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # Checks if the required arguments are present
8  
9 51 ▶sub _check_required_args {
Subroutine _check_required_args: called CC=3 SCAR=11.0
10 51 my ($self, $required_args, %args) = @_;
11  
12 51 foreach my $arg ( @{$required_args} ) {
13 86 ▶ if (!exists $args{$arg}) {
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $args{$arg}) 16 70 86
14 16 croak "Required parameter '$arg' is not defined";
15 }
16 }
17 }
18  
19 14 1;
20  
21 __END__
« Newsletter/Lists/Email.pm ↑ Summary Newsletter/Lists.pm »