X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FChained.pm;fp=t%2Flib%2FTestApp%2FController%2FAction%2FChained.pm;h=2af1ec64cbd0b114dd1a58bd7ccbec234c977296;hp=5fa5f2250c0b12d18b34e08c3c6f4769ddffb2c3;hb=409d48fb495802db8eb6e02a927dd2915d8643b4;hpb=4fb27043578a31f1ffd7498d1097c817a932d173 diff --git a/t/lib/TestApp/Controller/Action/Chained.pm b/t/lib/TestApp/Controller/Action/Chained.pm index 5fa5f22..2af1ec6 100644 --- a/t/lib/TestApp/Controller/Action/Chained.pm +++ b/t/lib/TestApp/Controller/Action/Chained.pm @@ -143,6 +143,15 @@ sub chain_dt_a :Chained :PathPart('chained/chain_dt') :CaptureArgs(1) { sub chain_dt_b :Chained('chain_dt_a') :PathPart('end') :Args(1) { } # +# Die in the middle of a chain +# +sub chain_die_a :Chained :PathPart('chained/chain_die') :CaptureArgs(1) { + $_[1]->error( 'break in the middle of a chain' ); +} + +sub chain_die_b :Chained('chain_die_a') :PathPart('end') :Args(1) {} + +# # Target for former forward and chain tests. # sub fw_dt_target :Private { }