use
strict;
use
warnings;
use
Test::More;
require
'./t/600-lhost-code'
;
my
$enginename
=
'GoogleWorkspace'
;
my
$samplepath
=
sprintf
(
"./set-of-emails/private/lhost-%s"
,
lc
$enginename
);
my
$enginetest
= Sisimai::Lhost::Code->makeinquiry;
my
$isexpected
= {
# INDEX => [['D.S.N.', 'replycode', 'REASON', 'hardbounce'], [...]]
'1001'
=> [[
'5.0.918'
,
''
,
'rejected'
, 0]],
};
plan
'skip_all'
,
sprintf
(
"%s not found"
,
$samplepath
)
unless
-d
$samplepath
;
$enginetest
->(
$enginename
,
$isexpected
, 1, 0);
done_testing;