Branch Coverage

blib/lib/Text/GooglewikiFormat.pm
Criterion Covered Total %
branch 45 52 86.5


line true false branch
80 3 37 if ((reftype $value || '') eq 'HASH')
82 0 3 unless defined $$to{$key}
103 1 14 if defined $newtags and (reftype $newtags || '') eq 'HASH'
105 1 14 if exists $$newtags{'blockorder'} or exists $$newtags{'blocks'}
112 2 4 if ($uri =~ /\.(jpe?g|png|gif)$/) { }
134 0 1 if (keys %blocks)
152 68 0 if $block
161 11 57 unless $text
164 3 54 if ($text =~ /^\}\}\}$/) { }
7 47 elsif ($Text::GooglewikiFormat::code_delimiters or $text =~ /^\{\{\{$/) { }
176 80 128 if ($$tags{'indented'}{$block})
179 66 14 unless $level
184 95 47 unless $marker_removed
205 0 30 unless @$blocks
226 27 13 unless $block->type eq 'end'
242 0 54 if (blessed $line)
249 26 28 if ((reftype $start_line || '') eq 'CODE') { }
264 11 16 if $between
274 66 14 unless $text =~ s/($$tags{'indent'})//
302 53 4 if $start_pos == -1
305 0 4 if $end_pos == -1
329 12 0 defined $_ ? :
344 3 4 defined $$opts{'prefix'} && $is_relative ? :
347 4 3 if (not $is_relative) { }
358 4 3 if $u->scheme
369 5 2 unless $title