blib/lib/Templ/Tag/Print.pm

filter: Statementstmt 95.0% 19 / 20 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 86.2% 25 / 29 CC 3 SCAR 7.2
CC
3
Cov
88%
perl
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« blib/lib/Templ/Header.pm ↑ Summary blib/lib/Templ/Spec/HTML.pm »
1 package Templ::Tag::Print;
2 1 ▶use base 'Templ::Tag';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 sub perl {
8 6 ▶ my $self = shift;
Subroutine perl: called CC=3 SCAR=11.3
Pod undocumented
9 6 my $expr = shift;
10 6 my $indent = shift;
11 6 my $append = shift; # 'print ' or '$templ_out .= '
12 6 my $out = '';
13 6 ▶ if ($indent) { $out .= "$append'$indent';\n"; }
Branch: 1 branch
BranchTrueFalseTotal
if ($indent) 0 6 6
14 6 ▶ if ( $expr ne '' ) { $out .= "$append$expr;\n"; }
Branch: 1 branch
BranchTrueFalseTotal
if ($expr ne "") 6 0 6
15 6 return $out;
16 }
17  
18 1 1;
« blib/lib/Templ/Header.pm ↑ Summary blib/lib/Templ/Spec/HTML.pm »