Branch Coverage

blib/lib/Querylet/Query.pm
Criterion Covered Total %
branch 46 50 92.0


line true false branch
72 1 13 if $$self{'query_vars'}
85 51 5 if $$self{'results'}
98 4013 9 if $$self{'columns'}
113 0 10 exists $$self{'headers'}{$column} ? :
130 2 3 unless @_ > 2
137 3 4 unless $$self{'scratchpad'}
146 13 4 unless @_
154 2 4 unless $$self{'input'}
155 1 5 if exists $$self{'input'}{$parameter}
157 3 2 if (not $input_handler{$self->input_type}) { }
175 12 7 unless @_
179 6 1 $filename ? :
188 14 8 unless @_
197 21 9 unless @_
205 8 9 if exists $$self{'output'}
207 1 8 if (not $output_handler{$self->output_type}) { }
212 1 7 unless ($$self{'output'})
224 1 3 unless $self->write_type
226 0 4 if (not $write_handler{$self->write_type}) { }
239 2 4 if (ref $output eq 'CODE') { }
240 0 2 if $self->write_type
263 10000 8000 defined $_ ? :
280 1 1 unless ($template)
319 3 0 if ($query->output_filename)
320 2 1 if (open my $output_file, '>', $query->output_filename) { }