Crypt-Random-Source
view release on metacpan or search on metacpan
"Types::Standard" => 0,
"namespace::clean" => "0.11",
"perl" => "5.008",
"strict" => 0,
"warnings" => 0
},
"test_requires" => {
"File::Spec" => 0,
"IO::Select" => 0,
"Module::Metadata" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"ok" => 0,
"perl" => "5.008"
}
);
my %fallback_build_requires = (
"File::Spec" => 0,
"IO::Select" => 0,
"Module::Metadata" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"ok" => 0,
"perl" => "5.008"
);
unless ( eval { Module::Build->VERSION(0.4004) } ) {
delete $module_build_args{test_requires};
$module_build_args{build_requires} = \%fallback_build_requires;
}
}
},
"test" : {
"recommends" : {
"CPAN::Meta" : "2.120900"
},
"requires" : {
"File::Spec" : "0",
"IO::Select" : "0",
"Module::Metadata" : "0",
"Test::Fatal" : "0",
"Test::More" : "0.88",
"ok" : "0",
"perl" : "5.008"
}
},
"x_Dist_Zilla" : {
"requires" : {
"Dist::Zilla" : "5",
"Dist::Zilla::Plugin::Authority" : "1.009",
"Dist::Zilla::Plugin::AutoMetaResources" : "0",
---
abstract: 'Get weak or strong random data from pluggable sources'
author:
- "×××× ×§××'×× (Yuval Kogman) <nothingmuch@woobling.org>"
build_requires:
File::Spec: '0'
IO::Select: '0'
Module::Metadata: '0'
Test::Fatal: '0'
Test::More: '0.88'
ok: '0'
perl: '5.008'
configure_requires:
ExtUtils::MakeMaker: '0'
Module::Build::Tiny: '0.034'
perl: '5.008'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.011, CPAN::Meta::Converter version 2.150010'
license: perl
Makefile.PL view on Meta::CPAN
"Sub::Exporter" => 0,
"Types::Standard" => 0,
"namespace::clean" => "0.11",
"strict" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"File::Spec" => 0,
"IO::Select" => 0,
"Module::Metadata" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"ok" => 0
},
"VERSION" => "0.14",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
Makefile.PL view on Meta::CPAN
"Carp" => 0,
"File::Spec" => 0,
"IO::File" => "1.14",
"IO::Handle" => 0,
"IO::Select" => 0,
"Module::Find" => 0,
"Module::Metadata" => 0,
"Module::Runtime" => 0,
"Moo" => "1.002000",
"Sub::Exporter" => 0,
"Test::Fatal" => 0,
"Test::More" => "0.88",
"Types::Standard" => 0,
"namespace::clean" => "0.11",
"ok" => 0,
"strict" => 0,
"warnings" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
t/00-report-prereqs.dd view on Meta::CPAN
}
},
'test' => {
'recommends' => {
'CPAN::Meta' => '2.120900'
},
'requires' => {
'File::Spec' => '0',
'IO::Select' => '0',
'Module::Metadata' => '0',
'Test::Fatal' => '0',
'Test::More' => '0.88',
'ok' => '0',
'perl' => '5.008'
}
},
'x_Dist_Zilla' => {
'requires' => {
'Dist::Zilla' => '5',
'Dist::Zilla::Plugin::Authority' => '1.009',
'Dist::Zilla::Plugin::AutoMetaResources' => '0',
use strict;
use warnings;
use Test::More 0.88;
use Test::Fatal;
use ok 'Crypt::Random::Source::Base::Proc';
{
my $p = Crypt::Random::Source::Base::Proc->new( command => [qw( echo foo bar )] );
is( $p->get(3), 'foo', "got data" );
like exception { $p->get(50) }, qr/enough bytes/, "not having enough data is fatal";
}
# ex: set sw=4 et:
use strict;
use warnings;
use Test::More 0.88;
use Test::Fatal;
use ok 'Crypt::Random::Source::Base::Handle';
{
my $p = Crypt::Random::Source::Base::Handle->new( handle => \*DATA );
is( $p->handle, \*DATA, "correct handle set up" );
is( $p->get(4), "foo\n", "read some bytes" );
( run in 2.181 seconds using v1.01-cache-2.11-cpan-54e63673c56 )