blib/lib/DB/Introspector/Base/Index.pm

filter: Statementstmt 38.8% 7 / 18 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 33.3% 2 / 6 Podpod 100% 4 / 4 totaltotal 39.3% 13 / 33 CC 2 SCAR 10.5
CC
2
Cov
33%
new
6.0
column_names
2.0
unique
2.0
CRAP 2.9
« blib/lib/DB/Introspector/SerializeUtil.pm ↑ Summary test_lib/DB/Introspector/RelInspectTest.pm »
1 package DB::Introspector::Base::Index;
2  
3 1 ▶use base qw( DB::Introspector::Base::Object );
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub column_names {
Subroutine column_names: not called CC=1 SCAR=6.9
Pod documented
8 0 my $self = shift;
9 0 die("column_names not defined for ".ref($self));
10 }
11  
12 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
13 0 my $class = shift;
14 0 my $table = shift;
15 0 my $unique = shift;
16  
17 0 ▶ my $self = bless({ _table => $table,
Condition0%0/3
ref $class || $class
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table0%0/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
18 _unique => $unique
19 }, ref($class) || $class);
20  
21 0 return $self;
22 }
23  
24 0 ▶sub unique {
Subroutine unique: not called CC=1 SCAR=6.9
Pod documented
25 0 my $self = shift;
26 0 return $self->{_unique};
27 }
28  
29  
30 0 ▶sub table {
Subroutine table: not called CC=1 SCAR=6.9
Pod documented
31 0 my $self = shift;
32 0 return $self->{_table};
33 }
34  
35  
36 1 1;
37 __END__
« blib/lib/DB/Introspector/SerializeUtil.pm ↑ Summary test_lib/DB/Introspector/RelInspectTest.pm »