line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TestLoad; |
2
|
1
|
|
|
1
|
|
44164
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
4
|
1
|
|
|
1
|
|
5
|
use Test::More; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
5
|
1
|
|
|
1
|
|
289
|
use Data::Dumper; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
54
|
|
6
|
1
|
|
|
1
|
|
538
|
use HTML::WebDAO::Container; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use HTML::WebDAO::Component; |
8
|
|
|
|
|
|
|
use base ( 'HTML::WebDAO::Container','HTML::WebDAO::Component' ); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub __get_objects_by_path { |
11
|
|
|
|
|
|
|
my $self = shift; |
12
|
|
|
|
|
|
|
my ( $path, $session ) = @_; |
13
|
|
|
|
|
|
|
# diag "PATH :".Dumper($path); |
14
|
|
|
|
|
|
|
my $eng = $self->getEngine; |
15
|
|
|
|
|
|
|
my $name = $path->[0]; |
16
|
|
|
|
|
|
|
if ( $name eq 'test.html') { |
17
|
|
|
|
|
|
|
diag $self->_obj_name .": detect self handler"; |
18
|
|
|
|
|
|
|
shift @$path; |
19
|
|
|
|
|
|
|
unshift @$path,"view", $name; |
20
|
|
|
|
|
|
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
my $autoload_obj = $eng->_createObj( $name,$name); |
23
|
|
|
|
|
|
|
# diag $session; |
24
|
|
|
|
|
|
|
# diag "return $autoload_obj"; |
25
|
|
|
|
|
|
|
return $autoload_obj;# default return undef |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub view { |
29
|
|
|
|
|
|
|
return 1 |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
1; |