Condition Coverage

blib/lib/Perinci/Result/Format/Lite.pm
Criterion Covered Total %
condition 68 122 55.7


and 3 conditions

line !l l&&!r l&&r condition
141 0 0 12 $header_row and @$data
148 27 1 2 $tfl and defined $tfl->[$field_idx]
25 0 3 $tfu and defined $tfu->[$field_idx]
182 3 0 3 $i == 0 and $header_row
262 0 12 3 $header_row and $i == 0
294 2 0 1 $maxw_d == 0 and $maxw_ad == 0
314 0 60 15 $header_row and $i == 0
408 0 0 0 $field_idx >= 0 and $tfa->[$field_idx]
438 4 11 0 $res->[3] and $res->[3]{'x.hint.result_binary'}
450 1 11 0 ref $data eq "ARRAY" and not @$data
473 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'}
500 0 0 0 $use_color and eval {
524 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
60 11 1 $resmeta //= {}
172 6 0 $fmt->[1] // {}
211 0 0 $1 or ""
215 0 0 $fmt_opts->{'sprintf'} // "%.2f%%"
223 0 6 $fmt_opts->{'thousands_sep'} // ","
0 6 $fmt_opts->{'decimal_point'} // "."
6 0 $fmt_opts->{'precision'} // 0
352 0 0 $backend //= "Text::Table::Org"
451 2 1 $data //= ""
522 0 2 $cleanse // 1

or 3 conditions

line l !l&&r !l&&!r condition
76 0 0 12 $resmeta->{'cmdline.format_options'} // $resmeta->{'format_options'}
80 0 0 0 $rfos->{'text-pretty'} // $rfos->{'text'}
0 0 0 ($rfos->{'text-pretty'} // $rfos->{'text'}) // $rfos->{'any'}
162 3 0 9 $tffmt or $tffmt_code
3 0 9 $tffmt or $tffmt_code or $tffmt_default
168 0 6 3 $fmt //= $tffmt->[$field_idx]
169 7 3 2 $fmt //= $tffmt_default
190 1 3 6 $fmt_name eq "iso8601_datetime" or $fmt_name eq "iso8601_date"
4 0 6 $fmt_name eq "iso8601_datetime" or $fmt_name eq "iso8601_date" or $fmt_name eq "datetime"
3 0 6 $fmt_name eq "iso8601_datetime" or $fmt_name eq "iso8601_date" or $fmt_name eq "datetime" or $fmt_name eq "date"
194 1 0 3 $fmt_name eq "iso8601_datetime" or $fmt_name eq "datetime"
243 3 0 9 $tfa or $tfa_code
3 0 9 $tfa or $tfa_code or $tfa_default
249 0 8 0 $align //= $tfa->[$field_idx]
250 9 2 1 $align //= $tfa_default
312 25 25 75 $align eq "middle" or $align eq "center"
365 12 0 0 $fres =~ /\R\z/ or not length $fres
452 1 1 1 not length $data or $data =~ /\n\z/
499 0 0 0 $ENV{'COLOR'} // -t STDOUT