1 package TestApp::Controller::Action::Go;
4 use base 'TestApp::Controller::Action';
12 my ( $self, $c ) = @_;
17 my ( $self, $c ) = @_;
18 $c->go( $self, 'four' );
22 my ( $self, $c ) = @_;
23 $c->go('/action/go/five');
27 my ( $self, $c ) = @_;
28 $c->go('View::Dump::Request');
31 sub inheritance : Local {
32 my ( $self, $c ) = @_;
33 $c->go('/action/inheritance/a/b/default');
37 my ( $self, $c ) = @_;
38 $c->go('/global_action');
41 sub with_args : Local {
42 my ( $self, $c, $arg ) = @_;
43 $c->go( 'args', [$arg] );
46 sub with_method_and_args : Local {
47 my ( $self, $c, $arg ) = @_;
48 $c->go( qw/TestApp::Controller::Action::Go args/, [$arg] );
52 my ( $self, $c, $val ) = @_;
53 die "passed argument does not match args" unless $val eq $c->req->args->[0];
58 my ( $self, $c, $val ) = @_;
59 eval { $c->go( 'args', [qq/new/] ) };
60 $c->res->body( $@ ? $@ : "go() did not die" );
64 sub go_chained : Local {
65 my ( $self, $c, $val ) = @_;
66 $c->go('/action/chained/foo/spoon',[1]);
69 sub args_embed_relative : Local {
70 my ( $self, $c ) = @_;
74 sub args_embed_absolute : Local {
75 my ( $self, $c ) = @_;
76 $c->go('/action/go/embed/ok');
80 my ( $self, $c, $ok ) = @_;
85 sub class_go_test_action : Local {
86 my ( $self, $c ) = @_;
87 $c->go(qw/TestApp class_go_test_method/);