lib/SQL/Admin/Driver/DB2/Parser.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond 33.3% 2 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 73.6% 28 / 38 CC 3 SCAR 7.2
CC
3
Cov
85%
new
3.8
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« lib/SQL/Admin/Driver/Base/Evaluate.pm ↑ Summary blib/lib/SQL/Admin/Driver/Base/Keywords.pm »
1  
2 package SQL::Admin::Driver::DB2::Parser;
3 2 ▶use base qw( SQL::Admin::Driver::Base::Parser );
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our $VERSION = v0.5.0;
9  
10 ######################################################################
11  
12 2 ▶use SQL::Admin::Utils qw( refhash refarray );
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 ######################################################################
15  
16 2 my $grammar = require SQL::Admin::Driver::DB2::Grammar;
17 2 my $cached;
18  
19 ######################################################################
20 ######################################################################
21 1 ▶sub new { # ;
Subroutine new: called CC=3 SCAR=13.3
Pod undocumented
22 1 my $class = shift;
23  
24 1 ▶ $cached ||= $class->SUPER::new (@_);
Condition33%1/3
$cached ||= $class->SUPER::new(@_)
l!l&&r!l&&!r
010
MC/DC0%0/2
$cached ||= $class->SUPER::new(@_)
$cached $class->SUPER::new(@_)
Truth table33%1/3
A ||= B
A= $cachedB= $class->SUPER::new(@_)
ABresult
1X1
011
000
25 1 ▶ bless { @_, parser => $cached->{parser} }, ref $class || $class;
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
26 }
27  
28  
29 ######################################################################
30 ######################################################################
31 1 ▶sub grammar { # ;
Subroutine grammar: called CC=1 SCAR=0.0
Pod undocumented
32 1 $grammar;
33 }
34  
35  
36 ######################################################################
37 ######################################################################
38  
39 package SQL::Admin::Driver::DB2::Parser;
40  
41 2 1;
« lib/SQL/Admin/Driver/Base/Evaluate.pm ↑ Summary blib/lib/SQL/Admin/Driver/Base/Keywords.pm »