File Coverage

blib/lib/Data/Tabular/Row/Titles.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition 1 2 50.0
subroutine 3 3 100.0
pod 0 1 0.0
total 14 16 87.5


line stmt bran cond sub pod time code
1             # Copyright (C) 2003-2007, G. Allen Morris III, all rights reserved
2              
3 6     6   37 use strict;
  6         14  
  6         317  
4             package
5             Data::Tabular::Row::Titles;
6              
7 6     6   36 use base 'Data::Tabular::Row';
  6         14  
  6         1345  
8              
9             sub get_column
10             {
11 102     102 0 126 my $self = shift;
12 102   50     237 my $key = shift || die 'need column name';
13              
14 102         1805 my $output = $self->output;
15              
16 102         345 Data::Tabular::Type->new(
17             data => $output->title($key),
18             format => $output->format('_title', $key),
19             );
20             }
21              
22             1;
23             __END__