blib/lib/Dancer/Template.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.7% 30 / 31 CC 2 SCAR 2.5
CC
2
Cov
100%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Dancer/Logger/Capture/Trap.pm ↑ Summary blib/lib/Dancer/Serializer/Dumper.pm »
1 package Dancer::Template;
2 234 our $AUTHORITY = 'cpan:SUKRIA';
3 #ABSTRACT: template wrapper for Dancer
4 234 $Dancer::Template::VERSION = '1.3513';
5 234 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 234 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 234 ▶use Dancer::ModuleLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 234 ▶use Dancer::Engine;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # singleton for the current template engine
11 234 my $_engine;
12 78 ▶sub engine { $_engine }
Subroutine engine: called CC=1 SCAR=0.0
Pod documented
13  
14 # init the engine according to the settings the template engine module will
15 # take from the setting name.
16 sub init {
17 249 ▶ my ($class, $name, $config) = @_;
Subroutine init: called CC=2 SCAR=6.9
Pod undocumented
18 249 ▶ $name ||= 'simple';
Condition100%2/2
$name ||= "simple"
l!l
2463
MC/DC100%1/1
$name ||= "simple"
$name
Truth table100%2/2
A
A= $name
Aresult
11
00
19 249 $_engine = Dancer::Engine->build(template => $name, $config);
20 }
21  
22 234 1;
23  
24 __END__
« blib/lib/Dancer/Logger/Capture/Trap.pm ↑ Summary blib/lib/Dancer/Serializer/Dumper.pm »