Simple/Dummy.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 89.6% 26 / 29 CC 3 SCAR 6.5
CC
3
Cov
91%
stack
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« Simple/Cache/ID.pm ↑ Summary Simple/Compiler.pm »
1 package Text::Template::Simple::Dummy;
2 34 $Text::Template::Simple::Dummy::VERSION = '0.91';
3 # Dummy Plug provided by the nice guy Mr. Ikari from NERV :p
4 # All templates are compiled into this package.
5 # You can define subs/methods here and then access
6 # them inside templates. It is also possible to declare
7 # and share package variables under strict (safe mode can
8 # have problems though). See the Pod for more info.
9 34 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 34 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 34 ▶use Text::Template::Simple::Caller;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 34 ▶use Text::Template::Simple::Util qw();
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 4 ▶sub stack { # just a wrapper
Subroutine stack: called CC=3 SCAR=11.4
Pod documented
15 4 ▶ my $opt = shift || {};
Condition50%1/2
shift() || {}
l!l
40
MC/DC0%0/1
shift() || {}
shift()
Truth table50%1/2
A
A= shift()
Aresult
11
00
16 4 ▶ Text::Template::Simple::Util::fatal('tts.caller.stack.hash')
Branch: 1 branch
BranchTrueFalseTotal
if ref $opt ne "HASH" 0 4 4
17 if ref $opt ne 'HASH';
18 4 $opt->{frame} = 1;
19 4 return Text::Template::Simple::Caller->stack( $opt );
20 }
21  
22 34 1;
23  
24 __END__
« Simple/Cache/ID.pm ↑ Summary Simple/Compiler.pm »