File: 05_except.t

package info (click to toggle)
libtest-useallmodules-perl 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 152 kB
  • ctags: 11
  • sloc: perl: 72; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use warnings;
use FindBin;
use lib glob("$FindBin::Bin/extlib/*/lib");
use Test::UseAllModules;
use Test::More tests => 2;

BEGIN {
  chdir 't/MANIFESTed';
  my @modules = Test::UseAllModules::_get_module_list( except => qr/Foo/ );
  ok @modules == 1;
  ok $modules[0] eq 'TestUseAllModulesTest';
  chdir '../..';
}