Informix/Util.pm

filter: Statementstmt 100% 16 / 16 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 CC 2 SCAR 3.4
CC
2
Cov
100%
_quote_ident
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Informix/Diff.pm ↑ Summary Shortcut/ix.pm »
1 package DBIO::Informix::Util;
2 # ABSTRACT: Identifier quoting shared by the Informix DDL and diff writers
3  
4 34 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 34 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 34 our $VERSION = '0.900007';
8  
9 34 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
10 34 our @EXPORT_OK = qw(_quote_ident);
11  
12  
13 1117 ▶sub _quote_ident {
Subroutine _quote_ident: called CC=2 SCAR=6.9
14 1117 my ($name) = @_;
15 1117 ▶ return $name if $name =~ /\A[a-z_][a-z0-9_]*\z/;
Branch: 1 branch
BranchTrueFalseTotal
if $name =~ /\A[a-z_][a-z0-9_]*\z/ 1106 11 1117
16 11 $name =~ s/"/""/g;
17 11 return qq{"$name"};
18 }
19  
20 34 1;
21  
22 __END__
« Informix/Diff.pm ↑ Summary Shortcut/ix.pm »