configure_requires 'B::Hooks::OP::Check' => '0.19';
test_requires 'Test::More' => '0.88';
+test_requires 'Test::Requires' => '0';
# r/w: p5sagit@git.shadowcat.co.uk:Devel-Declare.git
repository 'git://git.shadowcat.co.uk/p5sagit/Devel-Declare.git';
use warnings;
use strict;
-BEGIN {
- eval { require Devel::CallParser };
- if($@ ne "") {
- require Test::More;
- Test::More::plan(skip_all => "Devel::CallParser unavailable");
- }
-}
+use Test::More;
+use Test::Requires 'Devel::CallParser';
-use Test::More tests => 1;
+plan tests => 1;
use Devel::CallParser ();
use warnings;
use strict;
-BEGIN {
- eval { require Filter::Util::Call };
- if($@ ne "") {
- require Test::More;
- Test::More::plan(skip_all => "Filter::Util::Call unavailable");
- }
-}
+use Test::More;
+use Test::Requires 'Filter::Util::Call';
+
+plan tests => 2;
use Devel::Declare ();
use Filter::Util::Call qw(filter_add filter_del);
-use Test::More tests => 2;
sub my_quote($) { $_[0] }
use warnings;
use strict;
-BEGIN {
- eval { require Filter::Util::Call };
- if($@ ne "") {
- require Test::More;
- Test::More::plan(skip_all => "Filter::Util::Call unavailable");
- }
-}
+use Test::More;
+use Test::Requires 'Filter::Util::Call';
+
+plan tests => 2;
use Devel::Declare ();
use Filter::Util::Call qw(filter_add filter_del);
-use Test::More tests => 2;
sub my_quote($) { $_[0] }
use warnings;
use Test::More;
-BEGIN {
- eval 'use B::Compiling';
-
- $@ and plan 'skip_all' => $@
- or plan tests => 5;
-}
+use Test::Requires 'B:Compiling';
+plan tests => 5;
my @lines;