Branch Coverage

blib/lib/Text/PRN/Slurp.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
71 0 2 unless (defined $opt{'file_headers'})
74 0 2 if (ref $opt{'file_headers'} ne 'ARRAY')
78 0 0 unless (defined $opt{'filehandle'} or defined $opt{'file'} or defined $opt{'string'})
86 0 2 if (defined $opt{'filehandle'})
91 2 0 if (defined $opt{'file'})
93 0 2 unless open $io, '<:encoding(UTF-8)', $opt{'file'}
98 0 2 if (defined $opt{'string'})
111 0 2 unless $self->file_headers
117 0 2 unless $self->columns_map
136 1 6 unless $1
138 1 6 unless $1
139 1 6 unless $1
162 5 30 unless $col_length
181 0 14 unless $self->{'options'}
182 0 14 unless ref $self->{'options'} eq 'HASH'
194 0 12 unless $self->{'options'}
195 0 12 unless ref $self->{'options'} eq 'HASH'
198 0 12 unless $col_length_map
199 0 12 unless scalar keys %$col_length_map