2 use Test::More eval { require Devel::Cycle } ? 'no_plan' : ( skip_all => 'No Devel::Cycle' );
8 my $on_cycle = sub { Devel::Cycle::_do_report( ++$counter, shift ) };
10 local *STDOUT = *STDERR;
11 Devel::Cycle::find_cycle( main->new->to_psgi_app, $on_cycle );
13 ok !$counter, "no leak in to_psgi_app";