blib/lib/WebDAO/SessionSH.pm

filter: Statementstmt 96.4% 27 / 28 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 87.5% 7 / 8 Podpod 0.0% 0 / 1 totaltotal 87.5% 35 / 40 CC 2 SCAR 2.9
CC
2
Cov
93%
_init
2.0
print_header
2.0
BEGIN
1.0
CRAP 1.3
« blib/lib/WebDAO/Lib/RawHTML.pm ↑ Summary blib/lib/WebDAO/Lex.pm »
1 package WebDAO::SessionSH;
2  
3 =head1 NAME
4  
5 WebDAO::SessionSH - Session class used from shell
6  
7 =head1 DESCRIPTION
8  
9 WebDAO::SessionSH - Session class used from shell
10  
11 =cut
12  
13 3 our $VERSION = '0.01';
14 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 3 ▶use WebDAO;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 3 ▶use WebDAO::Session;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 3 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 3 ▶use base qw( WebDAO::Session );
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 #Need to be forever called from over classes;
22 sub _init {
23 3 ▶ my $self = shift;
Subroutine _init: called CC=2 SCAR=7.0
24 3 my %args = @_;
25 3 $self->SUPER::_init(@_);
26 3 delete $args{cv};
27 3 $self->U_id( rand(100) );
28 #setup default method
29 3 ▶ $ENV{REQUEST_METHOD} ||="GET";
Condition50%1/2
$ENV{"REQUEST_METHOD"} ||= "GET"
l!l
03
MC/DC0%0/1
$ENV{"REQUEST_METHOD"} ||= "GET"
$ENV{"REQUEST_METHOD"}
Truth table50%1/2
A
A= $ENV{"REQUEST_METHOD"}
Aresult
11
00
30 3 Params $self ( $self->_get_params() );
31 }
32  
33 sub print_header() {
34 0 ▶ return ''
Subroutine print_header: not called CC=1 SCAR=6.9
Pod undocumented
35 }
36  
37 3 1;
38 __DATA__
39  
40 =head1 SEE ALSO
41  
42 http://webdao.sourceforge.net
43  
44 =head1 AUTHOR
45  
46 Zahatski Aliaksandr, E<lt>zag@cpan.orgE<gt>
47  
48 =head1 COPYRIGHT AND LICENSE
49  
50 Copyright 2002-2015 by Zahatski Aliaksandr
51  
52 This library is free software; you can redistribute it and/or modify
53 it under the same terms as Perl itself.
54  
55 =cut
56  
« blib/lib/WebDAO/Lib/RawHTML.pm ↑ Summary blib/lib/WebDAO/Lex.pm »