X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FRoot.pm;h=a3978d68c95849291ed40025d211f2dbc9d3b45b;hb=46c30d96cff719b2c10445b73b256e615a138773;hp=281782a45f7069e57b2bc84633c83525749ac997;hpb=32d5a0c5b62161c260d59fe230420c814f4dfbf4;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm index 281782a..a3978d6 100644 --- a/t/lib/TestApp/Controller/Root.pm +++ b/t/lib/TestApp/Controller/Root.pm @@ -4,4 +4,24 @@ use base 'Catalyst::Controller'; __PACKAGE__->config->{namespace} = ''; +sub chain_root_index : Chained('/') PathPart('') Args(0) { } + +sub zero : Path('0') { + my ( $self, $c ) = @_; + $c->res->header( 'X-Test-Class' => ref($self) ); + $c->response->content_type('text/plain; charset=utf-8'); + $c->forward('TestApp::View::Dump::Request'); +} + +sub localregex : LocalRegex('^localregex$') { + my ( $self, $c ) = @_; + $c->res->header( 'X-Test-Class' => ref($self) ); + $c->response->content_type('text/plain; charset=utf-8'); + $c->forward('TestApp::View::Dump::Request'); +} + +sub chain_to_self : Chained('chain_to_self') PathPart('') CaptureArgs(1) { } + +sub chain_recurse_endoint : Chained('chain_to_self') Args(0) { } + 1;