Jifty-Plugin-OAuth
view release on metacpan or search on metacpan
t/lib/TestApp/Plugin/OAuth/Test.pm view on Meta::CPAN
sub rsa_skip {
my $count = shift || Carp::carp "You must specify a number of tests to skip.";
::skip 'Crypt::OpenSSL::RSA is required for these tests', $count unless has_rsa;
}
sub slurp {
no warnings 'once';
my $file = shift;
local $/;
local @ARGV = $file;
my $contents = scalar <>
or die "Unable to slurp $file";
return $contents;
}
sub get_latest_token {
my $content = $cmech->content;
$content =~ s/\boauth_token=(\w+)//
or return;
( run in 0.538 second using v1.01-cache-2.11-cpan-49f99fa48dc )