| 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
| |||||||||||
| 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__ | ||||||||||