393e0300cd6bec3a2a3491f7f2cf765bec87a2d1
[catagits/Catalyst-Runtime.git] / t / aggregate / live_component_controller_action_named_index.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 tests => 1*$iters;
14
15 use Catalyst::Test 'TestAppIndexActionName';
16
17 if ( $ENV{CAT_BENCHMARK} ) {
18     require Benchmark;
19     Benchmark::timethis( $iters, \&run_tests );
20 }
21 else {
22     for ( 1 .. $iters ) {
23         run_tests();
24     }
25 }
26
27 sub run_tests {
28     is(get('/indexchained'), 'index_chained', ':Chained overrides index');
29 }