blib/lib/CGI/Application/Plugin/HTMLPrototype.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 85.7% 24 / 28 CC 2 SCAR 3.2
CC
2
Cov
90%
prototype
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
↑ Summary
1 package CGI::Application::Plugin::HTMLPrototype;
2  
3 2 ▶use HTML::Prototype;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use vars qw($VERSION @EXPORT $PROTOTYPE);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 require Exporter;
9  
10 2 @EXPORT = qw(
11 prototype
12 );
13 2 ▶sub import { goto &Exporter::import }
Subroutine import: called CC=1 SCAR=0.0
14  
15 2 $VERSION = '0.20';
16  
17  
18 ##############################################
19 ###
20 ### prototype
21 ###
22 ##############################################
23 #
24 # Get an HTML::Prototype object. The same object
25 # will be returned everytime this method is called.
26 #
27 1 ▶sub prototype {
Subroutine prototype: called CC=2 SCAR=7.6
Pod documented
28 1 my $class = shift;
29  
30 1 ▶ $PROTOTYPE ||= HTML::Prototype->new;
Condition33%1/3
$CGI::Application::Plugin::HTMLPrototype::PROTOTYPE ||= "HTML::Prototype"->new
l!l&&r!l&&!r
010
MC/DC0%0/2
$CGI::Application::Plugin::HTMLPrototype::PROTOTYPE ||= "HTML::Prototype"->new
$CGI::Application::Plugin::HTMLPrototype::PROTOTYPE "HTML::Prototype"->new
Truth table33%1/3
A ||= B
A= $CGI::Application::Plugin::HTMLPrototype::PROTOTYPEB= "HTML::Prototype"->new
ABresult
1X1
011
000
31 1 return $PROTOTYPE;
32 }
33  
34 2 1;
35 __END__
↑ Summary