| 1 | package DB::Introspector::Base::Index; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 1 | ▶ | use base qw( DB::Introspector::Base::Object ); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 0 | ▶ | sub column_names { | ||||||||||||||||||
|
Subroutine
column_names: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 8 | 0 | my $self = shift; | |||||||||||||||||||
| 9 | 0 | die("column_names not defined for ".ref($self)); | |||||||||||||||||||
| 10 | } | ||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 13 | 0 | my $class = shift; | |||||||||||||||||||
| 14 | 0 | my $table = shift; | |||||||||||||||||||
| 15 | 0 | my $unique = shift; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 0 | ▶ | my $self = bless({ _table => $table, | ||||||||||||||||||
|
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
| |||||||||||||||||||||
| 18 | _unique => $unique | ||||||||||||||||||||
| 19 | }, ref($class) || $class); | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 0 | return $self; | |||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 0 | ▶ | sub unique { | ||||||||||||||||||
|
Subroutine
unique: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 25 | 0 | my $self = shift; | |||||||||||||||||||
| 26 | 0 | return $self->{_unique}; | |||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 0 | ▶ | sub table { | ||||||||||||||||||
|
Subroutine
table: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 31 | 0 | my $self = shift; | |||||||||||||||||||
| 32 | 0 | return $self->{_table}; | |||||||||||||||||||
| 33 | } | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | 1 | 1; | |||||||||||||||||||
| 37 | __END__ | ||||||||||||||||||||