Branch Coverage

blib/lib/Text/WikiFormat.pm
Criterion Covered Total %
branch 57 60 95.0


line true false branch
57 0 6 unless @_
58 1 5 if @_ == 1
78 43 152 if ((reftype $value || '') eq 'HASH')
80 13 30 unless defined $$to{$key}
94 12 6 unless @_
131 37 8 if defined $newtags and (reftype $newtags || '') eq 'HASH'
133 16 29 if exists $$newtags{'blockorder'} or exists $$newtags{'blocks'}
148 4 14 if (keys %blocks)
166 251 2 if $block
175 78 180 unless $text
181 297 512 if ($$tags{'indented'}{$block})
184 120 177 unless $level
189 511 178 unless $marker_removed
210 2 93 unless @$blocks
231 105 79 unless $block->type eq 'end'
249 11 184 if (blessed $line)
256 36 148 if ((reftype $start_line || '') eq 'CODE') { }
271 47 69 if $between
279 120 177 unless $text =~ s/($$tags{'indent'})//
291 27 155 if $$opts{'extended'}
293 181 1 if not defined $$opts{'implicit_links'} or $$opts{'implicit_links'}
305 27 15 if $start_pos == -1
308 0 15 if $end_pos == -1
326 7 20 if $$opts{'absolute_links'}
333 45 0 defined $_ ? :
349 15 19 defined $$opts{'prefix'} && $is_relative ? :
352 3 31 !$is_relative && $$opts{'nofollow_extended'} ? :
363 8 26 if $u->scheme
374 21 13 if $$opts{'extended'}
375 31 3 unless $title