blib/lib/Perinci/Result/Format/Lite.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 71 | 125 | 56.8 |
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 |
252 | 0 | 81 | 37 | $header_row and $i == 0 |
279 | 0 | 12 | 3 | $header_row and $i == 0 |
311 | 2 | 0 | 1 | $maxw_d == 0 and $maxw_ad == 0 |
331 | 0 | 60 | 15 | $header_row and $i == 0 |
426 | 0 | 0 | 0 | $field_idx >= 0 and $tfa->[$field_idx] |
456 | 4 | 11 | 0 | $res->[3] and $res->[3]{'x.hint.result_binary'} |
468 | 1 | 11 | 0 | ref $data eq "ARRAY" and not @$data |
491 | 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'} | |
518 | 0 | 0 | 0 | $use_color and eval { |
542 | 2 | 0 | 0 | $tff and _json()->can("sort_by") |
2 | 0 | 0 | $tff and _json()->can("sort_by") and eval { |
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 | |
370 | 0 | 0 | $backend //= "Text::Table::Org" |
469 | 2 | 1 | $data //= "" |
540 | 0 | 2 | $cleanse // 1 |
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" |
247 | 3 | 0 | 9 | $tfa or $tfa_code |
3 | 0 | 9 | $tfa or $tfa_code or $tfa_default | |
266 | 0 | 33 | 6 | $align //= $tfa->[$field_idx] |
267 | 34 | 2 | 13 | $align //= $tfa_default |
329 | 25 | 25 | 75 | $align eq "middle" or $align eq "center" |
383 | 12 | 0 | 0 | $fres =~ /\R\z/ or not length $fres |
470 | 1 | 1 | 1 | not length $data or $data =~ /\n\z/ |
517 | 0 | 0 | 0 | $ENV{'COLOR'} // -t STDOUT |