AWS-Lambda
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/03_init_error.t view on Meta::CPAN
use strict;
use warnings;
use utf8;
use Test::More;
use FindBin;
use lib "$FindBin::Bin/lib";
use BootstrapMock;
use AWS::Lambda::Context;
use Try::Tiny;
my $error;
my $bootstrap = BootstrapMock->new(
handler => "init_error.handle",
runtime_api => "example.com",
task_root => "$FindBin::Bin/test_handlers",
lambda_init_error => sub {
my $self = shift;
$error = shift;
},
);
ok !$bootstrap->handle_event;
like $error, qr/did not return a true value/;
done_testing;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.831 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )