Condition Coverage

blib/lib/Perinci/Result/Format/Lite.pm
Criterion Covered Total %
condition 62 113 54.8


and 3 conditions

line !l l&&!r l&&r condition
138 0 0 12 $header_row and @$data
145 27 1 2 $tfl and defined $tfl->[$field_idx]
25 0 3 $tfu and defined $tfu->[$field_idx]
179 3 0 3 $i == 0 and $header_row
257 0 12 3 $header_row and $i == 0
289 2 0 1 $maxw_d == 0 and $maxw_ad == 0
309 0 60 15 $header_row and $i == 0
392 0 0 0 $field_idx >= 0 and $tfa->[$field_idx]
422 4 11 0 $res->[3] and $res->[3]{'x.hint.result_binary'}
434 1 11 0 ref $data eq 'ARRAY' and not @$data
457 0 1 10 $res->[3] and $res->[3]{'table.fields'}
1 9 1 $res->[3] and $res->[3]{'table.fields'} and $res->[3]{'table.hide_unknown_fields'}
484 0 0 0 $use_color and eval {
508 2 0 0 $tff and _json()->can('sort_by')
2 0 0 $tff and _json()->can('sort_by') and eval {

or 2 conditions

line l !l condition
57 11 1 $resmeta //= {}
169 6 0 $fmt->[1] // {}
208 0 0 $1 or ''
212 0 0 $fmt_opts->{'sprintf'} // '%.2f%%'
220 0 6 $fmt_opts->{'thousands_sep'} // ','
0 6 $fmt_opts->{'decimal_point'} // '.'
6 0 $fmt_opts->{'precision'} // 0
347 0 0 $backend //= 'Text::Table::Org'
435 2 1 $data //= ''
506 0 2 $cleanse // 1

or 3 conditions

line l !l&&r !l&&!r condition
73 0 0 12 $resmeta->{'cmdline.format_options'} // $resmeta->{'format_options'}
77 0 0 0 $rfos->{'text-pretty'} // $rfos->{'text'}
0 0 0 ($rfos->{'text-pretty'} // $rfos->{'text'}) // $rfos->{'any'}
159 3 0 9 $tffmt or $tffmt_code
3 0 9 $tffmt or $tffmt_code or $tffmt_default
165 0 6 3 $fmt //= $tffmt->[$field_idx]
166 7 3 2 $fmt //= $tffmt_default
187 1 3 6 $fmt_name eq 'iso8601_datetime' or $fmt_name eq 'iso8601_date'
238 3 0 9 $tfa or $tfa_code
3 0 9 $tfa or $tfa_code or $tfa_default
244 0 8 0 $align //= $tfa->[$field_idx]
245 9 2 1 $align //= $tfa_default
307 25 25 75 $align eq 'middle' or $align eq 'center'
355 0 0 12 $fres =~ /\R\z/ or not length $fres
436 1 1 1 not length $data or $data =~ /\n\z/
483 0 0 0 $ENV{'COLOR'} // -t STDOUT