lib/Template/Plugin/Dump.pm

filter: Statementstmt 58.6% 17 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 100% 2 / 2 totaltotal 63.1% 24 / 38 CC 1 SCAR 2.5
CC
1
Cov
59%
dump
2.0
dump_html
2.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 package Template::Plugin::Dump;
2
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Data::Dump;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Template::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use base qw( Template::Plugin );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
8
9 1 $VERSION = '0.02';
10
11 0 ▶sub dump {
Subroutine dump: not called CC=1 SCAR=6.9
Pod documented
12 0 my $self = shift;
13 0 my $content = Data::Dump::dump(@_);
14 0 return $content;
15 }
16
17 0 ▶sub dump_html {
Subroutine dump_html: not called CC=1 SCAR=6.9
Pod documented
18 0 my $self = shift;
19 0 my $content = Data::Dump::dump(@_);
20
21 0 $content =~ s/&/&/g;
22 0 $content =~ s/</&lt;/g;
23 0 $content =~ s/>/&gt;/g;
24 0 $content =~ s/ /&nbsp;/g;
25 0 $content =~ s/"/&quot;/g;
26 0 $content =~ s/\n/<br>\n/g;
27
28 0 return $content;
29 }
30
31 1 1;
32
33 __END__
↑ Summary