lib/SQL/Admin/Catalog/Table/Constraint.pm

filter: Statementstmt 100% 17 / 17 Branchbran 75.0% 3 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 83.8% 26 / 31 CC 4 SCAR 7.3
CC
4
Cov
91%
fullname
3.2
column_list
2.0
BEGIN
1.0
CRAP 2.1
« lib/SQL/Admin/Driver/Pg/Parser.pm ↑ Summary lib/SQL/Admin/Driver/Base/Evaluate.pm »
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
BranchTrueFalseTotal
if @_ 4 16 20
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
BranchTrueFalseTotal
ref $_ ? : 0 21 21
Condition50%1/2
$self->column_list || []
l!l
140
MC/DC0%0/1
$self->column_list || []
$self->column_list
Truth table50%1/2
A
A= $self->column_list
Aresult
11
00
28 );
29 }
30  
31  
32 ######################################################################
33 ######################################################################
34  
35 package SQL::Admin::Catalog::Table::Constraint;
36  
37 2 1;
38  
« lib/SQL/Admin/Driver/Pg/Parser.pm ↑ Summary lib/SQL/Admin/Driver/Base/Evaluate.pm »