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