blib/lib/WebDAO/Lib/MethodByPath.pm

filter: Statementstmt 57.6% 15 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 2 totaltotal 55.8% 19 / 34 CC 1 SCAR 2.9
CC
1
Cov
58%
init
2.0
fetch
2.0
BEGIN
1.0
CRAP 1.3
« blib/lib/WebDAO/Modal.pm ↑ Summary blib/lib/WebDAO/Lib/RawHTML.pm »
1 package WebDAO::Lib::MethodByPath;
2  
3 =head1 NAME
4  
5 WebDAO::Lib::MethodByPath - Component for method tag
6  
7 =head1 SYNOPSIS
8  
9 =head1 DESCRIPTION
10  
11 WebDAO::Lib::MethodByPath - Component for method tag
12  
13 =cut
14  
15 5 our $VERSION = '0.01';
16 5 ▶use WebDAO;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 5 ▶use base qw(WebDAO);
Subroutine BEGIN: called CC=1 SCAR=0.0
20 5 __PACKAGE__->mk_attr( _path=>undef, _args=>undef);
21  
22  
23 sub init {
24 0 ▶ my $self = shift;
Subroutine init: not called CC=1 SCAR=6.9
Pod undocumented
25 0 my ( $path, @args ) = @_;
26 0 $self->_path($path);
27 0 $self->_args( \@args );
28 0 1;
29 }
30  
31 sub fetch {
32 0 ▶ my $self = shift;
Subroutine fetch: not called CC=1 SCAR=6.9
Pod undocumented
33 0 my $sess = shift;
34 0 my @path = @{ $sess->call_path( $self->_path ) };
35 0 my ( $src, $res ) = $self->_root_->_traverse_( $sess, @path );
36 0 return $res;
37 }
38  
39 5 1;
40 __DATA__
41  
42 =head1 SEE ALSO
43  
44 http://sourceforge.net/projects/webdao
45  
46 =head1 AUTHOR
47  
48 Zahatski Aliaksandr, E<lt>zag@cpan.orgE<gt>
49  
50 =head1 COPYRIGHT AND LICENSE
51  
52 Copyright 2002-2012 by Zahatski Aliaksandr
53  
54 This library is free software; you can redistribute it and/or modify
55 it under the same terms as Perl itself.
56  
57 =cut
58  
« blib/lib/WebDAO/Modal.pm ↑ Summary blib/lib/WebDAO/Lib/RawHTML.pm »