| 1 | package Mail::DMARC::Test::Transport; | ||
| 2 | |||
| 3 | # VERSION | ||
| 4 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use feature 'signatures'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use Email::Sender::Transport::Test; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 11 | ▶ | sub new($class) { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | 11 | my $self = {}; | |
| 11 | 11 | return bless $self, $class; | |
| 12 | } | ||
| 13 | |||
| 14 | { | ||
| 15 | 2 | my $global_transport = Email::Sender::Transport::Test->new; | |
| 16 | |||
| 17 | 2 | ▶ | sub get_test_transport { |
|
Subroutine
get_test_transport: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 2 | return $global_transport; | |
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | 1 | ▶ | sub get_transports_for( $self, $args = undef ) { |
|
Subroutine
get_transports_for: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 23 | 1 | my @transports; | |
| 24 | 1 | push @transports, $self->get_test_transport; | |
| 25 | 1 | return @transports; | |
| 26 | } | ||
| 27 | |||
| 28 | 2 | 1; | |