File: import_minimal.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 (16 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Test::Effects tests => 1, import => [':minimal'];

effects_ok {
    print 'stdout';
    say {*STDERR} 'stderr';
    warn  'warning';
    VERBOSE({});
}
{
    stdout => "stdout",
    stderr => qr{stderr\nwarning \s+ at}x,
    warn   => [qr{\A warning \s+ at}x],
    die    => qr{\AUndefined subroutine &main::VERBOSE called},
}
=> 'import minimal works';