| 1 | package Database::Async::ORM::Constraint; | ||||||||||||
| 2 | |||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | 2 | our $VERSION = '0.019'; # VERSION | |||||||||||
| 7 | |||||||||||||
| 8 | 0 | ▶ | sub new { | ||||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 9 | 0 | my ($class, %args) = @_; | |||||||||||
| 10 | 0 | bless \%args, $class | |||||||||||
| 11 | } | ||||||||||||
| 12 | |||||||||||||
| 13 | 0 | ▶ | sub table { shift->{table} } | ||||||||||
|
Subroutine
table: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 14 | 0 | ▶ | sub name { shift->{name} } | ||||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 15 | 0 | ▶ | sub type { shift->{type} } | ||||||||||
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 16 | |||||||||||||
| 17 | 0 | ▶ | sub is_deferrable { shift->{deferrable} } | ||||||||||
|
Subroutine
is_deferrable: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 18 | 0 | ▶ | sub is_deferred { shift->{initially_deferred} } | ||||||||||
|
Subroutine
is_deferred: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 19 | |||||||||||||
| 20 | 0 | ▶ | sub fields { | ||||||||||
|
Subroutine
fields: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||
| 21 | 0 | my ($self) = @_; | |||||||||||
| 22 | 0 | ▶ | map { $self->table->field_by_name($_) } ($self->{fields} //= [])->@* | ||||||||||
|
Condition0%0/2
$self->{"fields"} //= []
MC/DC0%0/1
$self->{"fields"} //= []
$self->{"fields"}
Truth table0%0/2
A
A= $self->{"fields"}
| |||||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | 0 | ▶ | sub references { | ||||||||||
|
Subroutine
references: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 26 | 0 | my ($self) = @_; | |||||||||||
| 27 | 0 | $self->table->schema->table_by_name($self->{references}{table}); | |||||||||||
| 28 | } | ||||||||||||
| 29 | |||||||||||||
| 30 | 2 | 1; | |||||||||||
| 31 | |||||||||||||