| blib/lib/Mojolicious/Plugin/BootstrapHelpers/Helpers.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 36 | 53 | 67.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 149 | 41 | 10 | 0 | exists $attr->{'__caret'} && $attr->{'__caret'} |
| 327 | 18 | 2 | 3 | length $justified_class and not scalar @url |
| 628 | 0 | 0 | 3 | defined $content && length $content |
| 645 | 0 | 4 | 0 | defined $icon and length $icon |
| 726 | 0 | 43 | 43 | scalar @$url == 1 and substr($url->[0], 0, 1) eq '#' |
| 756 | 0 | 0 | 17 | defined $id and not exists $tag_attr->{'id'} |
| 796 | 217 | 0 | 9 | $attr{'data'} and ref $attr{'data'} eq 'HASH' |
| 875 | 49 | 38 | 0 | exists $attr->{'__disabled'} and $attr->{'__disabled'} |
| line | l | !l | condition |
|---|---|---|---|
| 204 | 11 | 0 | delete $attr->{'items'} || [] |
| 261 | 1 | 35 | $attr->{'tabindex'} ||= -1 |
| 321 | 6 | 23 | delete $button_attr->{'items'} || [] |
| 434 | 5 | 0 | shift @$header || [] |
| 549 | 4 | 14 | delete $attr->{'items'} || [] |
| 669 | 3 | 2 | $prepend_tag || '' |
| 3 | 2 | $append_tag || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 151 | 12 | 0 | 39 | scalar @url or exists $attr->{'type'} |
| 436 | 5 | 0 | 0 | delete $header_attr->{'toggler'} || 'collapsable-' . 'String::Random'->new->randregex('[a-z]{20}') |
| 612 | 1 | 1 | 0 | $pills || $tabs |
| 692 | 1 | 1 | 3 | $key eq 'check_box' or $key eq 'radio_button' |
| 864 | 33 | 0 | 145 | scalar @founds or defined $default |