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