Debian Codegraph @

t/612-lhost-amazonses.t

raw symbols SCIP
1 use strictscip-perl cpan Sisimai v5.7.0 strict/;
2 use warningsscip-perl cpan Sisimai v5.7.0 warnings/;
3 use Test::Morescip-perl cpan Sisimai v5.7.0 Test/More/;
4 use libscip-perl cpan Sisimai v5.7.0 lib/ qw(./lib ./blib/lib);
5 requirescip-perl cpan Sisimai v5.7.0 main/require(). './t/600-lhost-code';
6
7 my $enginename = 'AmazonSES';
8 my $enginetest = Sisimai::Lhost::Code->makeinquiryscip-perl cpan Sisimai v5.7.0 Sisimai/Lhost/Code/makeinquiry().;
9 my $isexpected = {
10 # INDEX => [['D.S.N.', 'replycode', 'REASON', 'hardbounce', 'toxic'], [...]]
11 '01' => [['5.7.1', '550', 'securityerror', 0, 0]],
12 '02' => [['5.3.0', '550', 'filtered', 0, 1]],
13 '03' => [['5.2.2', '550', 'mailboxfull', 0, 1]],
14 '05' => [['5.1.1', '550', 'userunknown', 1, 1]],
15 '06' => [['5.1.1', '550', 'userunknown', 1, 1]],
16 '07' => [['5.7.6', '550', 'securityerror', 0, 0]],
17 '08' => [['5.7.9', '550', 'securityerror', 0, 0]],
18 '09' => [['5.1.1', '550', 'userunknown', 1, 1]],
19 '10' => [['5.1.1', '550', 'userunknown', 1, 1]],
20 '11' => [['', '', 'feedback', 0, 1, 'abuse']],
21 '12' => [['2.6.0', '250', 'delivered', 0, 0]],
22 '13' => [['2.6.0', '250', 'delivered', 0, 0]],
23 '14' => [['5.7.1', '554', 'blocked', 0, 0]],
24 '15' => [['5.7.1', '554', 'blocked', 0, 0]],
25 '16' => [['5.7.1', '521', 'blocked', 0, 0]],
26 '17' => [['4.4.2', '421', 'expired', 0, 0]],
27 '18' => [['5.4.4', '550', 'hostunknown', 1, 1]],
28 '19' => [['5.7.1', '550', 'suspend', 0, 1]],
29 '20' => [['5.2.1', '550', 'suspend', 0, 1]],
30 '21' => [['5.7.1', '554', 'norelaying', 0, 1]],
31 };
32
33 $enginetest->(scip-perl cpan Sisimai v5.7.0 main/`->()`().$enginename, scip-perl cpan Sisimai v5.7.0 main/`->()`().$isexpected)scip-perl cpan Sisimai v5.7.0 main/`->()`().;
34 done_testing;
35