view release on metacpan or search on metacpan
inc/Module/Install/StandardTests.pm view on Meta::CPAN
BEGIN {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
}
/);
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/StandardTests.pm view on Meta::CPAN
BEGIN {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
}
/);
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/StandardTests.pm view on Meta::CPAN
BEGIN {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
}
/);
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/StandardTests.pm view on Meta::CPAN
BEGIN {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
}
/);
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/StandardTests.pm view on Meta::CPAN
BEGIN {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
}
/);
}
view all matches for this distribution
view release on metacpan or search on metacpan
xt/author/00_compile.t view on Meta::CPAN
use strict;
use warnings;
use Test::Compile;
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
xt/author/00_compile.t view on Meta::CPAN
#!perl -w
use strict;
use warnings;
use Test::Compile;
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Test/Compile.pm view on Meta::CPAN
sub import {
my $self = shift;
my $caller = caller;
for my $func ( qw( pm_file_ok all_pm_files all_pm_files_ok ) ) {
no strict 'refs';
*{$caller."::".$func} = \&$func;
}
$Test->exported_to($caller);
inc/Test/Compile.pm view on Meta::CPAN
$Test->diag($diag) unless $ok;
$ok;
}
sub all_pm_files_ok {
my @files = @_ ? @_ : all_pm_files();
$Test->plan(tests => scalar @files);
my $ok = 1;
view all matches for this distribution
view release on metacpan or search on metacpan
xt/author/00_compile.t view on Meta::CPAN
#!perl -w
use strict;
use warnings;
use Test::Compile;
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/StandardTests.pm view on Meta::CPAN
BEGIN {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
}
/);
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/005_compile.t view on Meta::CPAN
use Test::More;
plan tests => 1;
use Test::Compile;
subtest 'Perl modules' => sub {
all_pm_files_ok();
};
=head1 AUTHORS
Dmitry E. Oboukhov <unera@debian.org>,
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-load.t view on Meta::CPAN
use lib 'lib';
use Test::More;
eval 'use Test::Compile; 1' or plan skip_all => 'Test::Compile required';
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
t/005_compile.t view on Meta::CPAN
use Test::More;
plan tests => 1;
use Test::Compile;
subtest 'Perl modules' => sub {
all_pm_files_ok();
};
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
use Test::More;
eval 'use Test::Compile; 1'
? all_pm_files_ok()
: plan skip_all => "Test::Compile required";
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-use-ok.t view on Meta::CPAN
use Test::More;
use Test::Compile;
all_pm_files_ok() or BAIL_OUT('No point in continuing.');
# setup vim: set filetype=perl tabstop=4 softtabstop=4 expandtab :
# setup vim: set shiftwidth=4 shiftround textwidth=78 autoindent :
# setup vim: set foldmethod=indent foldlevel=0 fileencoding=utf8 :
view all matches for this distribution
view release on metacpan or search on metacpan
t/00_compile.t view on Meta::CPAN
use Test::More;
eval { require Test::Compile; Test::Compile->import };
if ($@) {
plan(skip_all => "Test::Compile required for testing compilation: $@");
} else {
Test::Compile::all_pm_files_ok();
}
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/StandardTests.pm view on Meta::CPAN
BEGIN {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
}
/);
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-load.t view on Meta::CPAN
use lib qw(lib);
use Test::More;
eval 'use Test::Compile;1' or plan skip_all => 'Test::Compile required';
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
t/a_compile.t view on Meta::CPAN
} else {
eval "use Test::Compile";
if ( $@ ) {
plan skip_all => 'Test::Compile required for validating the perl files';
} else {
all_pm_files_ok();
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-load.t view on Meta::CPAN
use lib qw(lib);
use Test::More;
eval 'use Test::Compile;1' or plan skip_all => 'Test::Compile required';
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
t/_compile.t view on Meta::CPAN
use warnings;
use Test::More;
eval "use Test::Compile";
plan skip_all => "Test::Compile required for testing compilation"
if $@;
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
t/00_compile.t view on Meta::CPAN
use Test::More;
eval 'use Test::Compile';
Test::More->builder->BAIL_OUT('Test::Compile required for testing compilation')
if $@;
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
xt/author/00_compile.t view on Meta::CPAN
use Test::More;
eval 'use Test::Compile; 1'
or plan skip_all => 'Test::Compile required';
plan skip_all => 'skip author tests during AUTOMATED_TESTING'
if $ENV{AUTOMATED_TESTING};
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-load.t view on Meta::CPAN
use lib qw(lib);
use Test::More;
eval 'use Test::Compile;1' or plan skip_all => 'Test::Compile required';
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
eval "use Test::Compile 0.08";
plan skip_all => "Test::Compile 0.08 required for testing compilation"
if $@;
my @pmdirs = qw(lib blib sbin bin);
all_pm_files_ok(all_pm_files(@pmdirs));
view all matches for this distribution
view release on metacpan or search on metacpan
xt/author/00_compile.t view on Meta::CPAN
#!perl -w
use strict;
use warnings;
use Test::Compile;
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
t/00_compile.t view on Meta::CPAN
use warnings;
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
eval "use Test::Compile 0.08";
plan skip_all => "Test::Compile 0.08 required for testing compilation"
if $@;
my @pmdirs = qw(lib blib sbin bin);
all_pm_files_ok(all_pm_files(@pmdirs));
view all matches for this distribution
view release on metacpan or search on metacpan
t/00-compile.t view on Meta::CPAN
eval "use Test::Compile 0.08";
plan skip_all => "Test::Compile 0.08 required for testing compilation"
if $@;
my @pmdirs = qw(lib blib sbin bin);
all_pm_files_ok(all_pm_files(@pmdirs));
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Install/StandardTests.pm view on Meta::CPAN
BEGIN {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
}
/);
}
view all matches for this distribution