File Coverage

blib/lib/DBIx/Inspector/Column.pm
Criterion Covered Total %
statement 12 26 46.1
branch 0 2 0.0
condition n/a
subroutine 4 15 26.6
pod 1 11 9.0
total 17 54 31.4


line stmt bran cond sub pod time code
1             package DBIx::Inspector::Column;
2 1     1   7 use strict;
  1         3  
  1         55  
3 1     1   8 use warnings;
  1         2  
  1         37  
4 1     1   6 use utf8;
  1         2  
  1         9  
5 1     1   28 use Class::Accessor::Lite;
  1         12  
  1         8  
6             Class::Accessor::Lite->mk_accessors(qw/inspector/);
7              
8             sub new {
9 0     0 0   my $class = shift;
10 0 0         my %args = @_ == 1 ? %{ $_[0] } : @_;
  0            
11 0           bless {%args}, $class;
12             }
13              
14 0     0 1   sub get { $_[0]->{$_[1]} }
15              
16 0     0 0   sub name { $_[0]->{COLUMN_NAME} }
17 0     0 0   sub column_name { $_[0]->{COLUMN_NAME} }
18 0     0 0   sub data_type { $_[0]->{DATA_TYPE} }
19 0     0 0   sub type_name { $_[0]->{TYPE_NAME} }
20 0     0 0   sub column_size { $_[0]->{COLUMN_SIZE} }
21 0     0 0   sub nullable { $_[0]->{NULLABLE} }
22 0     0 0   sub remarks { $_[0]->{REMARKS} }
23 0     0 0   sub column_def { $_[0]->{COLUMN_DEF} }
24 0     0 0   sub is_nullable { $_[0]->{IS_NULLABLE} }
25              
26             1;
27             __END__