File Coverage

lib/SQL/Admin/Catalog/Table/Constraint.pm
Criterion Covered Total %
statement 15 15 100.0
branch 4 6 66.6
condition n/a
subroutine 5 5 100.0
pod 0 2 0.0
total 24 28 85.7


line stmt bran cond sub pod time code
1              
2             package SQL::Admin::Catalog::Table::Constraint;
3 2     2   1309 use base qw( SQL::Admin::Catalog::Table::Object );
  2         3  
  2         190  
4              
5 2     2   10 use strict;
  2         4  
  2         103  
6 2     2   19 use warnings;
  2         3  
  2         4296  
7              
8             our $VERSION = v0.5.0;
9              
10             ######################################################################
11             ######################################################################
12             sub column_list { # ;
13 20     20 0 27 my $self = shift;
14 20 100       177 $self->{column_list} = shift if @_;
15 20         195 $self->{column_list};
16             }
17              
18              
19             ######################################################################
20             ######################################################################
21             sub fullname { # ;
22 14     14 0 789 my $self = shift;
23              
24 14 50       36 join '.', (
25             $self->table->fullname,
26             $self->_constraint_type,
27 14 50       39 (map join ('-', ref $_ ? @$_ : $_), @{ $self->column_list || [] }),
28             );
29             }
30              
31              
32             ######################################################################
33             ######################################################################
34              
35             package SQL::Admin::Catalog::Table::Constraint;
36              
37             1;
38