6 unless (eval 'use CatalystX::LeakChecker 0.05; 1') {
7 plan skip_all => 'CatalystX::LeakChecker 0.05 required for this test';
14 use lib "$FindBin::Bin/lib";
16 use Catalyst::Test 'TestApp';
19 my ($resp, $ctx) = ctx_request('/contextclosure/normal_closure');
20 ok($resp->is_success);
21 is($ctx->count_leaks, 1);
25 my ($resp, $ctx) = ctx_request('/contextclosure/context_closure');
26 ok($resp->is_success);
27 is($ctx->count_leaks, 0);