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

filter: Statementstmt 60.0% 6 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 60.0% 6 / 10 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Test2/Manual/Tooling/TestBuilder.pm ↑ Summary blib/lib/Test2/Compare/EventMeta.pm »
1 # ID 20020716.013, the exit code would become 0 if the test died
2 # before a plan.
3  
4 1 require Test::Simple;
5  
6 1 push @INC, 't/lib';
7 1 require Test::Simple::Catch;
8 1 my($out, $err) = Test::Simple::Catch::caught();
9  
10 1 close STDERR;
11 1 die "Knife?";
12  
13 0 Test::Simple->import(tests => 3);
14  
15 0 ok(1);
16 0 ok(1);
17 0 ok(1);
« blib/lib/Test2/Manual/Tooling/TestBuilder.pm ↑ Summary blib/lib/Test2/Compare/EventMeta.pm »