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

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 33.3% 2 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 70.5% 24 / 34 CC 3 SCAR 7.9
CC
3
Cov
83%
new
3.8
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« lib/SQL/Admin/Catalog/Sequence.pm ↑ Summary lib/SQL/Admin/Catalog/Table/Constraint.pm »
1  
2 package SQL::Admin::Driver::Pg::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  
13 2 my $grammar = require SQL::Admin::Driver::Pg::Grammar;
14 2 my $cached;
15  
16 ######################################################################
17 ######################################################################
18 1 ▶sub new { # ;
Subroutine new: called CC=3 SCAR=13.3
Pod undocumented
19 1 my $class = shift;
20  
21 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
22 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
23 }
24  
25  
26 ######################################################################
27 ######################################################################
28 1 ▶sub grammar { # ;
Subroutine grammar: called CC=1 SCAR=0.0
Pod undocumented
29 1 $grammar;
30 }
31  
32  
33 ######################################################################
34 ######################################################################
35  
36 package SQL::Admin::Driver::Pg::Parser;
37  
38 2 1;
« lib/SQL/Admin/Catalog/Sequence.pm ↑ Summary lib/SQL/Admin/Catalog/Table/Constraint.pm »