| 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(@_)
MC/DC0%0/2
$cached ||= $class->SUPER::new(@_)
$cached
$class->SUPER::new(@_)
Truth table33%1/3
A ||= B
A= $cachedB= $class->SUPER::new(@_)
| |||||||||||||||||||||
| 22 | 1 | ▶ | bless { @_, parser => $cached->{parser} }, ref $class || $class; | ||||||||||||||||||
|
Condition33%1/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table33%1/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 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; | |||||||||||||||||||