File: corelist.t

package info (click to toggle)
dh-make-perl 0.75-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,520 kB
  • sloc: perl: 4,730; makefile: 94
file content (18 lines) | stat: -rwxr-xr-x 434 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl -w

use strict;
use warnings;

use Test::More tests => 7;

use DhMakePerl::Utils qw(is_core_module);
use Config;
use File::Find::Rule;

# Check to see if our module list contains some obvious candidates.

foreach my $module ( qw(Fatal File::Copy FindBin CGI IO::Handle Safe) ) {
    ok(is_core_module($module), "$module should be a core module");
}

ok( !is_core_module('Foo::Bar'), 'Foo::Bar is not a core module' );