File: WITHOUT_dir.t

package info (click to toggle)
libtest-effects-perl 0.002000-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 216 kB
  • sloc: perl: 505; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use Test::Effects;
use lib 't/lib';

plan tests => 2;

effects_ok {
    require Test::Effects::Module1;
    1;
}
{
    VERBOSE => 1,
}
=> 'with dir works';


effects_ok {
    require Test::Effects::Module2;
    1;
}
{
    scalar_return => sub { (shift//0) != 1 },
    die           => qr{\ACan't locate Test/Effects/Module2.pm in \@INC},

    VERBOSE => 1,
    WITHOUT => 't/lib/',
}
=> 'WITHOUT dir works';