lib/SQL/Admin/Catalog/Sequence.pm

filter: Statementstmt 90.6% 29 / 32 Branchbran 78.5% 11 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.0% 9 / 10 Podpod 0.0% 0 / 7 totaltotal 77.7% 49 / 63 CC 8 SCAR 8.3
CC
8
Cov
87%
owner
6.0
type
2.0
start_with
2.0
CRAP 2.3
« lib/SQL/Admin/Driver/DB2/Producer.pm ↑ Summary lib/SQL/Admin/Driver/Pg/Parser.pm »
1  
2 package SQL::Admin::Catalog::Sequence;
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 1 ▶sub type { # ;
Subroutine type: called CC=2 SCAR=7.1
Pod undocumented
13 1 my $self = shift;
14 1 ▶ $self->{type} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 0 1
15 1 $self->{type};
16 }
17  
18  
19 ######################################################################
20 ######################################################################
21 2 ▶sub start_with { # ;
Subroutine start_with: called CC=2 SCAR=6.9
Pod undocumented
22 2 my $self = shift;
23 2 ▶ $self->{start_with} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 1 2
24 2 $self->{start_with};
25 }
26  
27  
28 ######################################################################
29 ######################################################################
30 2 ▶sub increment_by { # ;
Subroutine increment_by: called CC=2 SCAR=6.9
Pod undocumented
31 2 my $self = shift;
32 2 ▶ $self->{increment_by} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 1 2
33 2 $self->{increment_by};
34 }
35  
36  
37 ######################################################################
38 ######################################################################
39 2 ▶sub minvalue { # ;
Subroutine minvalue: called CC=2 SCAR=6.9
Pod undocumented
40 2 my $self = shift;
41 2 ▶ $self->{minvalue} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 1 2
42 2 $self->{minvalue};
43 }
44  
45  
46 ######################################################################
47 ######################################################################
48 2 ▶sub maxvalue { # ;
Subroutine maxvalue: called CC=2 SCAR=6.9
Pod undocumented
49 2 my $self = shift;
50 2 ▶ $self->{maxvalue} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 1 2
51 2 $self->{maxvalue};
52 }
53  
54  
55 ######################################################################
56 ######################################################################
57 2 ▶sub cache { # ;
Subroutine cache: called CC=2 SCAR=6.9
Pod undocumented
58 2 my $self = shift;
59 2 ▶ $self->{cache} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 1 1 2
60 2 $self->{cache};
61 }
62  
63  
64 ######################################################################
65 ######################################################################
66 0 ▶sub owner { # ;
Subroutine owner: not called CC=2 SCAR=17.9
Pod undocumented
67 0 my $self = shift;
68 0 ▶ $self->{owner} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
69 0 $self->{owner};
70 }
71  
72  
73 ######################################################################
74 ######################################################################
75  
76 package SQL::Admin::Catalog::Sequence;
77  
78 2 1;
79  
« lib/SQL/Admin/Driver/DB2/Producer.pm ↑ Summary lib/SQL/Admin/Driver/Pg/Parser.pm »