Condition Coverage

blib/lib/Mojolicious/Plugin/BootstrapHelpers/Helpers.pm
Criterion Covered Total %
condition 39 53 73.5


and 3 conditions

line !l l&&!r l&&r condition
151 41 0 10 exists $attr->{'__caret'} && $attr->{'__caret'}
329 18 2 3 length $justified_class and not scalar @url
630 0 0 3 defined $content && length $content
647 0 0 4 defined $icon and length $icon
728 0 43 43 scalar @$url == 1 and substr($url->[0], 0, 1) eq '#'
758 0 0 17 defined $id and not exists $tag_attr->{'id'}
798 217 0 9 $attr{'data'} and ref $attr{'data'} eq 'HASH'
877 49 35 3 exists $attr->{'__disabled'} and $attr->{'__disabled'}

or 2 conditions

line l !l condition
206 11 0 delete $attr->{'items'} || []
263 1 35 $attr->{'tabindex'} ||= -1
323 6 23 delete $button_attr->{'items'} || []
436 5 0 shift @$header || []
551 4 14 delete $attr->{'items'} || []
671 3 2 $prepend_tag || ''
3 2 $append_tag || ''

or 3 conditions

line l !l&&r !l&&!r condition
153 12 16 23 scalar @url or exists $attr->{'type'}
438 5 0 0 delete $header_attr->{'toggler'} || 'collapsable-' . 'String::Random'->new->randregex('[a-z]{20}')
614 1 1 0 $pills || $tabs
694 1 1 3 $key eq 'check_box' or $key eq 'radio_button'
866 33 52 93 scalar @founds or defined $default