X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FChained%2FFoo.pm;fp=t%2Flib%2FTestApp%2FController%2FAction%2FChained%2FFoo.pm;h=2ebd39de8f7b027d2d33d9afc11499045f11b419;hb=5882c86e1f256e122583dcc311b17bdbf9a4d766;hp=0000000000000000000000000000000000000000;hpb=9cc849968f79904d340abec75ebd6706746973b6;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Chained/Foo.pm b/t/lib/TestApp/Controller/Action/Chained/Foo.pm new file mode 100644 index 0000000..2ebd39d --- /dev/null +++ b/t/lib/TestApp/Controller/Action/Chained/Foo.pm @@ -0,0 +1,28 @@ +package TestApp::Controller::Action::Chained::Foo; + +use strict; +use warnings; + +use base qw/Catalyst::Controller/; + +# +# Child of current namespace +# +sub spoon :Chained('') :Args(0) { } + +# +# Root for a action in a "parent" controller +# +sub higher_root :PathPart('chained/higher_root') :Chained('/') :Captures(1) { } + +# +# Parent controller -> this subcontroller -> parent controller test +# +sub pcp2 :Chained('/action/chained/pcp1') :Captures(1) { } + +# +# Controllers not in parent/child relation. This tests the end. +# +sub cross2 :PathPart('end') :Chained('/action/chained/bar/cross1') :Args(1) { } + +1;