lib/SQL/Admin/Catalog/Index.pm

filter: Statementstmt 76.9% 20 / 26 Branchbran 60.0% 6 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 5 totaltotal 65.3% 32 / 49 CC 6 SCAR 11.0
CC
6
Cov
72%
include_column_list
6.0
where
6.0
unique
2.0
CRAP 3.0
« blib/script/sql-admin.pl ↑ Summary lib/SQL/Admin/Utils.pm »
1  
2 package SQL::Admin::Catalog::Index;
3 2 ▶use base qw( SQL::Admin::Catalog::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 3 ▶sub unique { # ;
Subroutine unique: called CC=2 SCAR=6.9
Pod undocumented
13 3 my $self = shift;
14 3 ▶ $self->{unique} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 2 3
15 3 $self->{unique};
16 }
17  
18  
19 ######################################################################
20 ######################################################################
21 4 ▶sub table { # ;
Subroutine table: called CC=2 SCAR=6.9
Pod undocumented
22 4 my $self = shift;
23 4 ▶ $self->{table} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 2 2 4
24 4 $self->{table};
25 }
26  
27  
28 ######################################################################
29 ######################################################################
30 4 ▶sub column_list { # ;
Subroutine column_list: called CC=2 SCAR=6.9
Pod undocumented
31 4 my $self = shift;
32 4 ▶ $self->{column_list} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 2 2 4
33 4 $self->{column_list};
34 }
35  
36  
37 ######################################################################
38 ######################################################################
39 0 ▶sub include_column_list { # ;
Subroutine include_column_list: not called CC=2 SCAR=17.9
Pod undocumented
40 0 my $self = shift;
41 0 ▶ $self->{include_column_list} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
42 0 $self->{include_column_list};
43 }
44  
45  
46 ######################################################################
47 ######################################################################
48 0 ▶sub where { # ;
Subroutine where: not called CC=2 SCAR=17.9
Pod undocumented
49 0 my $self = shift;
50 0 ▶ $self->{where} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
51 0 $self->{where};
52 }
53  
54  
55 ######################################################################
56 ######################################################################
57  
58 package SQL::Admin::Catalog::Index;
59  
60 2 1;
61  
« blib/script/sql-admin.pl ↑ Summary lib/SQL/Admin/Utils.pm »