| 1 | |||||||||||||||||||||
| 2 | package SQL::Admin::Catalog::Table::Constraint; | ||||||||||||||||||||
| 3 | 2 | ▶ | use base qw( SQL::Admin::Catalog::Table::Object ); | ||||||||||||||||||
|
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 | 20 | ▶ | sub column_list { # ; | ||||||||||||||||||
|
Subroutine
column_list: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 13 | 20 | my $self = shift; | |||||||||||||||||||
| 14 | 20 | ▶ | $self->{column_list} = shift if @_; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 15 | 20 | $self->{column_list}; | |||||||||||||||||||
| 16 | } | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | ###################################################################### | ||||||||||||||||||||
| 20 | ###################################################################### | ||||||||||||||||||||
| 21 | 14 | ▶ | sub fullname { # ; | ||||||||||||||||||
|
Subroutine
fullname: called CC=3 SCAR=11.7
Pod
undocumented
| |||||||||||||||||||||
| 22 | 14 | my $self = shift; | |||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | join '.', ( | ||||||||||||||||||||
| 25 | $self->table->fullname, | ||||||||||||||||||||
| 26 | $self->_constraint_type, | ||||||||||||||||||||
| 27 | 14 | ▶ | (map join ('-', ref $_ ? @$_ : $_), @{ $self->column_list || [] }), | ||||||||||||||||||
|
Branch: 1 branch
Condition50%1/2
$self->column_list || []
MC/DC0%0/1
$self->column_list || []
$self->column_list
Truth table50%1/2
A
A= $self->column_list
| |||||||||||||||||||||
| 28 | ); | ||||||||||||||||||||
| 29 | } | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | ###################################################################### | ||||||||||||||||||||
| 33 | ###################################################################### | ||||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | package SQL::Admin::Catalog::Table::Constraint; | ||||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | 2 | 1; | |||||||||||||||||||
| 38 | |||||||||||||||||||||