ZofCMS/Plugin/QueryToTemplate.pm

filter: Statementstmt 57.1% 8 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 0.0% 0 / 2 totaltotal 45.4% 10 / 22 CC 2 SCAR 11.6
CC
2
Cov
50%
process
6.0
new
2.0
BEGIN
1.0
CRAP 3.2
« ZofCMS/Plugin/LinksToSpecs/HTML.pm ↑ Summary ZofCMS/Plugin/RandomBashOrgQuote.pm »
1 package App::ZofCMS::Plugin::QueryToTemplate;
2  
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '1.001010'; # VERSION
7  
8 0 ▶sub new { bless {}, shift; }
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
9  
10 0 ▶sub process {
Subroutine process: not called CC=2 SCAR=17.9
Pod undocumented
11 0 my ( $self, $template, $query, $config ) = @_;
12  
13 0 keys %$query;
14 0 ▶ while ( my ( $key, $value ) = each %$query ) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %$query) 0 0 0
15 0 $template->{t}{"query_$key"} = $value;
16 }
17  
18 0 return;
19 }
20  
21 1 1;
22 __END__
« ZofCMS/Plugin/LinksToSpecs/HTML.pm ↑ Summary ZofCMS/Plugin/RandomBashOrgQuote.pm »