File: 6-file-glob.t

package info (click to toggle)
libmodule-scandeps-perl 1.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 628 kB
  • sloc: perl: 3,157; makefile: 8; ansic: 1
file content (24 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl

use strict;
use warnings;

use Test::More tests => 2;
use Module::ScanDeps;
use lib qw(t/data);

my $map = scan_deps(
    files   => ['t/data/file-glob-no.pl'],
    recurse => 1,
);

ok(not exists $map->{'File/Glob.pm'});

$map = scan_deps(
    files => ['t/data/file-glob-yes.pl'],
    recurse => 1,
);

ok(exists $map->{'File/Glob.pm'});

__END__