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

filter: Statementstmt 43.7% 7 / 16 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 40.0% 2 / 5 Podpod 100% 3 / 3 totaltotal 36.3% 12 / 33 CC 4 SCAR 18.7
CC
4
Cov
30%
nullable
12.0
new
6.0
name
2.0
CRAP 6.5
« test_lib/DB/IntrospectorBaseTest.pm ↑ Summary blib/lib/DB/Introspector.pm »
1 package DB::Introspector::Base::Column;
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  
8 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
9 0 my $class = shift;
10 0 my $name = shift;
11  
12 0 ▶ my $self = bless({ _name => $name }, ref($class) || $class);
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
13  
14 0 return $self;
15 }
16  
17 0 ▶sub name {
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
18 0 my $self = shift;
19 0 return $self->{_name};
20 }
21  
22 0 ▶sub nullable {
Subroutine nullable: not called CC=3 SCAR=24.8
Pod documented
23 0 my $self = shift;
24 0 ▶ $self->{_nullable} = shift if(@_);
Branch: 1 branch
BranchTrueFalseTotal
if @_ 0 0 0
25 0 ▶ return (exists $self->{_nullable}) ? $self->{_nullable} : 1;
Branch: 1 branch
BranchTrueFalseTotal
exists $self->{'_nullable'} ? : 0 0 0
26 }
27  
28  
29  
30 1 1;
31 __END__
« test_lib/DB/IntrospectorBaseTest.pm ↑ Summary blib/lib/DB/Introspector.pm »