AI-CleverbotIO

 view release on metacpan or  search on metacpan

t/00-load.t  view on Meta::CPAN

# inspired by:
# http://perltricks.com/article/208/2016/1/5/Save-time-with-compile-tests
use strict;
use Test::More;
use Path::Tiny;

my $dir  = path(__FILE__)->parent(2)->child('lib');
my $iter = $dir->iterator(
   {
      recurse         => 1,
      follow_symlinks => 0,
   }
);
while (my $path = $iter->()) {
   next if $path->is_dir();    # avoid directories...
   next unless $path =~ /\.pm$/mxs;    # ... and non-module files
   my $module = $path->relative($dir); # get relative path...
   $module =~ s{ \.pm \z}{}gmxs;       # ... and transform it...
   $module =~ s{/}{::}gmxs;            # ... into a module name
   require_ok($module)
     or BAIL_OUT("can't load $module");
} ## end while (my $path = $iter->...)

diag("Testing AI::CleverbotIO $AI::CleverbotIO::VERSION");
done_testing();

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.493 second using v1.00-cache-2.02-grep-82fe00e-cpan-72ae3ad1e6da )