blib/lib/Template/Stash/HTML/Entities.pm

filter: Statementstmt 100% 25 / 25 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 1 / 1 totaltotal 100% 35 / 35 CC 2 SCAR 2.2
CC
2
Cov
100%
get
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary
1 #
2 # $Id: Entities.pm,v 1.5 2007/05/04 08:02:58 hironori.yoshida Exp $
3 #
4 package Template::Stash::HTML::Entities;
5  
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use version; our $VERSION = qv('1.3.1');
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶use HTML::Entities;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use Template::Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use base ($Template::Config::STASH);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 2 ▶sub get {
Subroutine get: called CC=2 SCAR=6.9
Pod documented
16 2 my $self = shift;
17  
18 2 my $result = $self->SUPER::get(@_);
19 2 ▶ if ( ref $result ) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $result) 1 1 2
20 1 return $result;
21 }
22  
23 1 return HTML::Entities::encode($result);
24 }
25  
26 2 1;
27  
28 __END__
↑ Summary