Branch Coverage

blib/lib/Data/Tabulate.pm
Criterion Covered Total %
branch 28 28 100.0


line true false branch
28 2 6 unless (defined $atts and ref $atts eq 'HASH' and exists $atts->{'data'} and ref $atts->{'data'} eq 'ARRAY')
33 1 5 unless ($module)
47 1 1 if (not $plugin_obj->can($method->[0])) { }
59 1 2 unless ($plugin_obj->can('output'))
75 1 10 if ($cols > $self->max_columns)
81 3 8 if ($cols < $self->min_columns)
101 6 5 if ($rest > 0)
140 13 46 if defined $value and $value =~ /^[1-9]\d*$/
143 20 39 unless ($caller and $caller =~ /min_columns/ or not defined $self->min_columns)
144 1 19 if $self->{'max_cols'} < $self->min_columns
154 13 66 if defined $value and $value =~ /^[1-9]\d*$/
157 30 49 unless ($caller and $caller =~ /max_columns/)
158 1 29 if $self->{'min_cols'} > $self->max_columns
185 1 4 if $@