Maker/Util.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 6 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 96.1% 25 / 26 CC 4 SCAR 10.0
CC
4
Cov
100%
quote_identifier
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Maker/Select/Oracle.pm ↑ Summary Maker/SelectSet.pm »
1 package SQL::Maker::Util;
2 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 25 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 25 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1165 ▶sub quote_identifier {
Subroutine quote_identifier: called CC=4 SCAR=13.9
Pod undocumented
7 1165 my ($label, $quote_char, $name_sep) = @_;
8  
9 1165 ▶ return $label if $label eq '*';
Branch: 1 branch
BranchTrueFalseTotal
if $label eq "*" 67 1098 1165
10 1098 ▶ return $label unless $name_sep;
Branch: 1 branch
BranchTrueFalseTotal
unless $name_sep 69 1029 1098
11 1029 ▶ return join $name_sep, map { $_ eq '*' ? $_ : $quote_char . $_ . $quote_char } split /\Q$name_sep\E/, $label;
Branch: 1 branch
BranchTrueFalseTotal
$_ eq '*' ? : 1 1069 1070
12 }
13  
14 25 1;
15  
« Maker/Select/Oracle.pm ↑ Summary Maker/SelectSet.pm »