steal some code from CGI::Compile, release
[catagits/Catalyst-Controller-WrapCGI.git] / t / lib / TestCGIBin / Controller / CGIHandler.pm
CommitLineData
21a20b7e 1package TestCGIBin::Controller::CGIHandler;
2
3use parent 'Catalyst::Controller::CGIBin';
4
9cd47364 5# Turn off log for the non-zero exit test
6sub auto : Private {
7 my ($self, $c) = @_;
8 $c->log->levels() unless $c->debug;
9 1;
10}
11
9cc2dd4c 12sub cgi_path {
13 my ($self, $cgi) = @_;
14 return "my-bin/$cgi";
15}
16
21a20b7e 17# try resolved forward
18sub mtfnpy : Local Args(0) {
19 my ($self, $c) = @_;
c264816e 20 $c->forward($self->cgi_action('path/test.pl'));
21a20b7e 21}
22
231;