Template/ESCAPE.pm

filter: Statementstmt 100% 23 / 23 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 90.6% 29 / 32 CC 2 SCAR 2.9
CC
2
Cov
96%
output
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Template/ESCAPE/JS.pm ↑ Summary Template/Bundle.pm »
1 package HTML::Template::ESCAPE;
2 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use base qw();
Subroutine BEGIN: called CC=1 SCAR=0.0
5 7 our $VERSION = '2.9';
6  
7 9 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8 9 my $unused;
9 9 my $self = \$unused;
10 9 bless($self, $_[0]);
11 9 return $self;
12 }
13  
14 # straight from the CGI.pm bible.
15 28 ▶sub output {
Subroutine output: called CC=2 SCAR=7.0
Pod undocumented
16 28 my $self = shift;
17 28 ▶ $_ = shift if (@_ > 0);
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 0 28 0 28
18 28 s/&/&/g;
19 28 s/\"/"/g; #"
20 28 s/>/>/g;
21 28 s/</&lt;/g;
22 28 s/'/&#39;/g; #'
23 28 $_;
24 }
25  
26 7 1;
27 __END__
« Template/ESCAPE/JS.pm ↑ Summary Template/Bundle.pm »