Dave Cross: Still Munging Data With Perl: Online event - Mar 27 Learn more

#!perl
use strict;
use FindBin qw/ $Bin /;
use lib "$Bin";
use_ok( 'Net::OAuth2::AuthorizationServer::ImplicitGrant' );
my $Grant;
foreach my $with_callbacks ( 0,1 ) {
isa_ok(
$Grant = Net::OAuth2::AuthorizationServer::ImplicitGrant->new(
clients => implicitgrant_tests::clients(),
# am passing in a reference to the modules subs to ensure we hit
# the code paths to call callbacks
( $with_callbacks ? (
implicitgrant_tests::callbacks( $Grant )
) : () ),
),
'Net::OAuth2::AuthorizationServer::ImplicitGrant'
);
implicitgrant_tests::run_tests( $Grant );
}
done_testing();