uspicious code
sub might_leak {
my $t = Test::Mojo->new('MyApp');
$t->post_ok('/search.json' => form => {q => 'Perl'})
->status_is(200);
...;
}
test_noleaks (
code
, i.e.
my $t = Test::Mojo->new('MyApp');
ok($t);
sub might_leak {
$t->post_ok('/search.json' => form => {q => 'Perl'})
->status_is(200);
...;
}
That way web-application is cr