Send/Test.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 80.0% 4 / 5 totaltotal 96.6% 29 / 30 CC 2 SCAR 2.5
CC
2
Cov
100%
emails
2.0
BEGIN
1.0
is_available
1.0
CRAP 1.3
« Send.pm ↑ Summary
1 package Email::Send::Test;
2 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 7 our $VERSION = '2.202';
5 7 $VERSION = eval $VERSION;
6  
7 # No longer allow direct access to the array
8 7 my @DELIVERIES = ();
9  
10 # This mailer is always available
11 9 ▶sub is_available { 1 }
Subroutine is_available: called CC=1 SCAR=0.0
Pod undocumented
12  
13 8 ▶sub send {
Subroutine send: called CC=1 SCAR=0.0
Pod documented
14 8 my ($self, $email, @rest) = @_;
15  
16 8 push @DELIVERIES, [ $self, $email, \@rest ];
17 8 return 1;
18 }
19  
20 8 ▶sub emails {
Subroutine emails: called CC=2 SCAR=6.9
Pod documented
21 8 ▶ return scalar @DELIVERIES unless wantarray;
Branch: 1 branch
BranchTrueFalseTotal
unless wantarray 4 4 8
22 4 return map { $_->[1] } @DELIVERIES;
23 }
24  
25 3 ▶sub clear {
Subroutine clear: called CC=1 SCAR=0.0
Pod documented
26 3 @DELIVERIES = ();
27 3 return 1;
28 }
29  
30 2 ▶sub deliveries {
Subroutine deliveries: called CC=1 SCAR=0.0
Pod documented
31 @DELIVERIES
32 2 }
33  
34 7 1;
35  
36 __END__
« Send.pm ↑ Summary