Acme-Ford-Prefect2-FFI
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
12345678910111213BEGIN {
my
%missing
=
map
{
eval
qq{ require $_ }
;
$@ ? (
$_
=>1) : ()
}
qw( strict warnings )
;
if
(
%missing
)
{
"Your Perl is missing core modules: @{[ sort keys %missing ]}\n"
;
"Ideally if you are using the system Perl you can install the appropriate\n"
;
"package which includes the core Perl modules. On at least some versions\n"
;
"of Fedora, CentOS and RHEL, this is the `perl-core` package.\n"
;
"\n"
;
t/00_diag.t view on Meta::CPAN
2526272829303132333435363738394041424344sub
spacer ()
{
diag
''
;
diag
''
;
diag
''
;
}
pass
'okay'
;
my
$max
= 1;
$max
=
$_
>
$max
?
$_
:
$max
for
map
{
length
$_
}
@modules
;
our
$format
=
"%-${max}s %s"
;
spacer;
my
@keys
=
sort
grep
/(MOJO|PERL|\A(LC|HARNESS)_|\A(SHELL|LANG)\Z)/i,
keys
%ENV
;
if
(
@keys
> 0)
{
diag
"$_=$ENV{$_}"
for
@keys
;
xt/author/pod_coverage.t view on Meta::CPAN
555657585960616263646566676869707172737475
}
}
my
@classes
= all_modules;
plan
tests
=>
scalar
@classes
;
foreach
my
$class
(
@classes
)
{
SKIP: {
my
(
$is_private_class
) =
map
{ 1 }
grep
{
$class
=~
$_
->{regex} &&
$_
->{all} }
@private_classes
;
skip
"private class: $class"
, 1
if
$is_private_class
;
my
%methods
=
map
{;
$_
=> 1 }
map
{
split
/,/,
$_
->{method} }
grep
{
$class
=~
$_
->{regex} }
@private_classes
;
$methods
{
$_
} = 1
for
keys
%private_methods
;
my
$also_private
=
eval
'qr{^'
.
join
(
'|'
,
keys
%methods
) .
'$}'
;
pod_coverage_ok
$class
, {
also_private
=> [
$also_private
] };
};
}
( run in 0.266 second using v1.01-cache-2.11-cpan-94b05bcf43c )