blib/lib/POE/Test/Loops/k_run_returns.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 33 CC 1 SCAR 6.9
CC
1
Cov
0%
POE::Kernel::ASSERT_DEFAULT
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl -w
2 # vim: ts=2 sw=2 expandtab
3  
4 # POE::Kernel->run() should return right away if there are no
5 # sessions.
6  
7 use strict;
8  
9 use lib qw(./mylib ../mylib);
10  
11 sub POE::Kernel::ASSERT_DEFAULT () { 1 }
12  
13 BEGIN {
14 package
15 POE::Kernel;
16 use constant TRACE_DEFAULT => exists($INC{'Devel/Cover.pm'});
17 }
18  
19 use POE;
20 use Test::More tests => 1;
21  
22 {
23 my $death_note = "never returned\n";
24 local $SIG{ALRM} = sub { die $death_note };
25 alarm(10);
26 eval { POE::Kernel->run() };
27 alarm(0);
28  
29 is($@, "", "POE::Kernel->run() returned right away");
30 }
31  
32 1;