| blib/lib/App/ansicolumn.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 59 | 126 | 46.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 275 | 8 | 0 | 7 | $obj->pane and not $obj->pane_width |
| 457 | 10 | 0 | 10 | $obj->widen and not $obj->pane_width |
| 479 | 2 | 0 | 19 | $obj->linestyle and $obj->linestyle ne "none" |
| 527 | 0 | 0 | 0 | defined $s and $s ne "" |
| 559 | 0 | 0 | 0 | defined $fmt and $fmt ne "" |
| 663 | 180 | 78 | 14 | !$bd{'top'} && $i == 0 |
| 180 | 64 | 14 | !$bd{'bottom'} && $i == $max | |
| 755 | 442 | 1 | 2 | $align[$i] eq "=" and (my $w = ansi_width($line->[$i])) < $max[$i] |
| 760 | 10 | 3 | 42 | $align[$#fmt] ne "" and not $obj->padding |
| line | l | !l | condition |
|---|---|---|---|
| 253 | 0 | 2 | $obj->linestyle ||= "wrap" |
| 254 | 0 | 2 | $obj->widen //= 1 |
| 255 | 0 | 2 | $obj->border //= "" |
| 264 | 3 | 8 | $obj->fillup //= "pane" |
| 277 | 0 | 15 | $obj->linestyle ||= "wrap" |
| 278 | 9 | 6 | $obj->border //= 1 |
| 279 | 9 | 6 | $obj->fillup //= "pane" |
| 286 | 0 | 0 | $obj->linestyle ||= "wrap" |
| 287 | 0 | 0 | $obj->border //= 1 |
| 288 | 0 | 0 | $obj->fillup //= "pane" |
| 294 | 0 | 5 | $obj->linebreak ||= "all" |
| 295 | 5 | 0 | $obj->linestyle ||= "wrap" |
| 296 | 0 | 5 | $obj->boundary ||= "word" |
| 311 | 17 | 0 | ($obj->{'BORDER'} = "App::ansicolumn::Border"->new)->style($style) // die("${style}: Unknown style.\n") |
| 417 | 31 | 2 | $length // 0 |
| 450 | 20 | 0 | $obj->column_unit // 1 |
| 458 | 9 | 1 | $obj->pane || $width / $claim || 1 |
| 462 | 9 | 1 | $obj->pane || $width / $span || 1 |
| 560 | 0 | 0 | $file // "" |
| 639 | 0 | 0 | $$names[$i++] // "" |
| 642 | 0 | 0 | $names->[0] // "" |
| 649 | 29 | 0 | $obj->current_page // 0 |
| 652 | 0 | 0 | $obj->panes // 1 |
| 654 | 29 | 0 | $opt->{'names'} // [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 252 | 1 | 1 | 29 | $obj->parallel //= @ARGV > 1 |
| 276 | 15 | 0 | 0 | $obj->page || $obj->term_height - 1 |
| 0 | 15 | 0 | $obj->height ||= $obj->page || $obj->term_height - 1 | |
| 328 | 0 | 2 | 0 | $obj->pane ||= @files |
| 335 | 0 | 0 | 0 | $spans[$i] // $spans[-1] |
| 355 | 0 | 4 | 0 | $_->{'span'} // $obj->span |
| 401 | 32 | 0 | 0 | do { local $/; readline $fh } // do { warn "${file}: $!\n" if $!; next } |
| 454 | 8 | 12 | 0 | $obj->border_width('center') || $obj->margin |
| 461 | 0 | 10 | 0 | $obj->pane_width || &roundup($claim, $unit) |
| 480 | 0 | 19 | 0 | $fp->{'span'} // $cell_width |
| 495 | 15 | 2 | 0 | $obj->height ||= div(int @$dp, $obj->panes) + $obj->border_height |
| 552 | 0 | 0 | 0 | $_[0] // $ml |
| 553 | 0 | 0 | 0 | $_[0] // $mr |
| 573 | 0 | 0 | 19 | $obj->{'_bl'} //= _parse_labels($obj->label) |
| 574 | 0 | 0 | 19 | $obj->{'_pbl'} //= _parse_labels($obj->page_label) |
| 579 | 0 | 0 | 19 | $bl or $pbl |
| 614 | 0 | 0 | 19 | @pane_top || @pane_bottom || @page_top || @page_bottom |