actually document the new request body_data method
[catagits/Catalyst-Runtime.git] / t / aggregate / live_component_controller_action_path_matchsingle.t
1 #!perl
2
3 use strict;
4 use warnings;
5
6 use FindBin;
7 use lib "$FindBin::Bin/../lib";
8
9 our $iters;
10
11 BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
12
13 use Test::More;
14 use Catalyst::Test 'TestAppMatchSingleArg';
15
16 plan 'skip_all' if ( $ENV{CATALYST_SERVER} );
17
18 plan tests => 3*$iters;
19
20 if ( $ENV{CAT_BENCHMARK} ) {
21     require Benchmark;
22     Benchmark::timethis( $iters, \&run_tests );
23 }
24 else {
25     for ( 1 .. $iters ) {
26         run_tests();
27     }
28 }
29
30 sub run_tests {
31     {
32         is(get('/foo/bar/baz'), 'Path', 'multiple args matched :Path');
33         is(get('/foo'), 'Path Args(1)', 'single arg matched :Path Args(1)');
34         is(get('/foo/bar'), 'Path Args(2)', 'two args matched :Path Args(2)');
35     }
36 }