blib/lib/HTML/Breadcrumbs.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 41 | 53 | 77.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
38 | 83 | 0 | 0 | $$self{'path'} and substr($$self{'path'}, 0, 1) ne '/' |
60 | 0 | 76 | 1 | $$self{'roots'} and not ref $$self{'roots'} |
82 | 68 | 3 | 6 | $$self{'omit'} and not ref $$self{'omit'} |
85 | 68 | 0 | 9 | $$self{'omit'} and ref $$self{'omit'} eq 'ARRAY' |
170 | 0 | 75 | 1 | $$self{'indexes'} and not ref $$self{'indexes'} |
224 | 6 | 3 | 170 | lc $label eq $label and $label =~ /^\w+$/ |
241 | 3 | 3 | 6 | substr($elt, -1) eq '/' and $elt ne '/' |
245 | 10 | 10 | 20 | substr($elt, -1) eq '/' and $elt ne '/' |
286 | 0 | 0 | 184 | $$self{'format'} and not ref $$self{'format'} |
310 | 0 | 0 | 74 | $$self{'format_last'} and not ref $$self{'format_last'} |
line | l | !l | condition |
---|---|---|---|
98 | 18 | 58 | $$self{'omit_regex'} || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
125 | 5 | 5 | 205 | $$self{'omit_elt'}{$current_test} or $$self{'omit_elt'}{$final} |
217 | 71 | 0 | 179 | $elt eq '/' or $elt eq '' |
246 | 0 | 3 | 37 | $label ||= $$self{'labels'}{$elt} |
247 | 2 | 2 | 16 | $label ||= $$self{'labels'}{$elt . '/'} |
10 | 10 | 20 | $elt eq '/' or $last | |
248 | 5 | 3 | 32 | $label ||= $$self{'labels'}{basename($elt)} |
252 | 16 | 250 | 0 | $label ||= $self->_label_default($elt, $last, $extra) |