t/lib/Test/Simple/sample_tests/death.plx

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 12 / 12 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« t/lib/Dev/Null.pm ↑ Summary t/lib/Test/Simple/sample_tests/death_in_eval.plx »
1 1 require Test::Simple;
2  
3 1 push @INC, 't/lib';
4 1 require Test::Simple::Catch;
5 1 my($out, $err) = Test::Simple::Catch::caught();
6  
7 1 require Dev::Null;
8  
9 1 Test::Simple->import(tests => 5);
10 1 tie *STDERR, 'Dev::Null';
11  
12 1 ok(1);
13 1 ok(1);
14 1 ok(1);
15 1 $! = 0;
16 1 die "This is a test";
« t/lib/Dev/Null.pm ↑ Summary t/lib/Test/Simple/sample_tests/death_in_eval.plx »