FIT/ColumnFixture.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
set_headers
2.0
next_slice
2.0
BEGIN
2.0
CRAP 2.0
1 package Test::FIT::ColumnFixture;
2 $VERSION = '0.10';
3 use strict;
4 use base 'Test::FIT::Fixture';
5  
6 sub set_headers {
7 my $self = shift;
8 my $matrix = $self->matrix;
9 my $header_row = shift @$matrix
10 or do {
11 $self->fixture_cell->mark_error("No Header Row!");
12 $self->has_errors(1);
13 };
14 $self->headers($header_row);
15 }
16  
17 sub next_slice {
18 my $self = shift;
19 my $matrix = $self->matrix;
20 shift @$matrix
21 }
22  
23 1;
24  
25 __END__