File Coverage

blib/lib/Data/Tabular/Column.pm
Criterion Covered Total %
statement 18 19 94.7
branch 1 2 50.0
condition n/a
subroutine 6 7 85.7
pod 0 5 0.0
total 25 33 75.7


line stmt bran cond sub pod time code
1             # Copyright (C) 2003-2007, G. Allen Morris III, all rights reserved
2              
3 7     7   43 use strict;
  7         14  
  7         344  
4             package
5             Data::Tabular::Column;
6              
7 7     7   39 use Carp qw(croak);
  7         11  
  7         3178  
8              
9             sub new
10             {
11 53     53 0 78 my $class = shift;
12 53         225 my $self = bless({ @_ }, $class);
13              
14 53 50       150 croak "no name" unless $self->{name};
15              
16 53         172 $self;
17             }
18              
19             sub name
20             {
21 32     32 0 46 my $self = shift;
22 32         47 my $name = $self->{name};
23 32         116 return $name;
24             }
25              
26             sub align
27             {
28 53     53 0 68 my $self = shift;
29 53         70 my $output = $self->{output};
30              
31 53         196 ' align="right"';
32             }
33              
34             sub colgroup_attribute
35 0     0 0 0 {
36             }
37              
38             sub col_id
39             {
40 32     32 0 43 my $self = shift;
41 32         82 $self->{offset};
42             }
43              
44             1;
45             __END__