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 lib/Dancer/Serializer/Dumper.pm »
1 package Dancer::Template;
2 244 our $AUTHORITY = 'cpan:SUKRIA';
3 #ABSTRACT: template wrapper for Dancer
4 244 $Dancer::Template::VERSION = '1.3522';
5 244 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 244 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 244 ▶use Dancer::ModuleLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 244 ▶use Dancer::Engine;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # singleton for the current template engine
11 244 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 259 ▶sub init {
Subroutine init: called CC=2 SCAR=6.9
Pod undocumented
17 259 my ($class, $name, $config) = @_;
18 259 ▶ $name ||= 'simple';
Condition100%2/2
$name ||= "simple"
l!l
2563
MC/DC100%1/1
$name ||= "simple"
$name
Truth table100%2/2
A
A= $name
Aresult
11
00
19 259 $_engine = Dancer::Engine->build(template => $name, $config);
20 }
21  
22 244 1;
23  
24 __END__
« blib/lib/Dancer/Logger/Capture/Trap.pm ↑ Summary lib/Dancer/Serializer/Dumper.pm »