X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FRoot.pm;h=c1bd6d522ef93a6557a3af352c0663560afd42ae;hb=38d2a7c6c71eb90d89bfd76a6436952ba5e732de;hp=5b292019d68a02ea2cb1322691d12c4c54680929;hpb=5ab21903f27011f38ec3e32ef2e649065e7adc1e;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm index 5b29201..c1bd6d5 100644 --- a/t/lib/TestApp/Controller/Root.pm +++ b/t/lib/TestApp/Controller/Root.pm @@ -14,6 +14,16 @@ sub zero : Path('0') { $c->forward('TestApp::View::Dump::Request'); } +sub zerobody : Local { + my ($self, $c) = @_; + $c->res->body('0'); +} + +sub emptybody : Local { + my ($self, $c) = @_; + $c->res->body(''); +} + sub localregex : LocalRegex('^localregex$') { my ( $self, $c ) = @_; $c->res->header( 'X-Test-Class' => ref($self) ); @@ -46,9 +56,55 @@ sub loop_test : Local { sub recursion_test : Local { my ( $self, $c ) = @_; + no warnings 'recursion'; $c->forward( 'recursion_test' ); } +sub base_href_test : Local { + my ( $self, $c ) = @_; + + my $body = <<"EndOfBody"; + +
+