contrib/TestLoad.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 90.0% 18 / 20 CC 1 SCAR 0.6
CC
1
Cov
87%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/HTML/WebDAO/Store/MLDBM.pm ↑ Summary
1 package TestLoad;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Test::More;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 ▶use HTML::WebDAO::Container;
Subroutine BEGIN: called CC=1 SCAR=2.6
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;
« blib/lib/HTML/WebDAO/Store/MLDBM.pm ↑ Summary