| 1 | #!/usr/bin/perl | ||||||||||||||||||||
| 2 | package SQL::QueryBuilder::Pretty::Rule; | ||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 1 | our $VERSION = '0.01'; | |||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 1 | ▶ | use Carp qw(croak); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 1 | ▶ | use Data::Dumper; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 13 | 0 | my $class = shift; | |||||||||||||||||||
| 14 | 0 | ▶ | return bless { @_ }, ref $class || $class; | ||||||||||||||||||
|
Condition0%0/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table0%0/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 15 | } | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 0 | ▶ | sub action { | ||||||||||||||||||
|
Subroutine
action: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 18 | 0 | my $self = shift; | |||||||||||||||||||
| 19 | 0 | my $print = shift; | |||||||||||||||||||
| 20 | 0 | my $token = shift; | |||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 0 | $print->var($token); | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 0 | return 1; | |||||||||||||||||||
| 25 | } | ||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | 0 | ▶ | sub match { croak 'Must subclass match!'; } | ||||||||||||||||||
|
Subroutine
match: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 28 | 0 | ▶ | sub name { return ( ref shift ) =~ /::([^:]+)$/; } | ||||||||||||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 29 | 0 | ▶ | sub order { return 999 } | ||||||||||||||||||
|
Subroutine
order: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 30 | 0 | ▶ | sub type { croak 'Must subclass type!'; } | ||||||||||||||||||
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | 1 | 1; | |||||||||||||||||||
| 33 | __END__ | ||||||||||||||||||||