Branch Coverage

blib/lib/Data/Foswiki.pm
Criterion Covered Total %
branch 48 62 77.4


line true false branch
75 2 5 unless $#_ >= 0
78 2 3 if ($#_ == 0)
79 0 2 if $_[0] eq ''
80 1 1 if ($_[0] =~ /\n/)
84 0 1 if $_[0] =~ /\n$/
95 2 2 if ($_[$start] and $_[$start] =~ /$METAINFOregex/)
97 2 0 if (not $isValidEmbedding_func or &$isValidEmbedding_func(undef, $1, $hash))
107 1 3 if ($_[$start] and $_[$start] =~ /$METAPARENTregex/)
110 1 0 if (not $isValidEmbedding_func or &$isValidEmbedding_func(undef, $1, $hash))
122 1 7 if $1 eq 'TOPICINFO' or $1 eq 'TOPICPARENT'
125 0 7 if ($isValidEmbedding_func and not &$isValidEmbedding_func(undef, $1, $meta))
133 1 6 if ($1 eq 'FORM') { }
137 5 1 if (exists $$meta{'name'} and $1 ne 'FORM') { }
147 1 3 if $trailingMeta and $_[$end] =~ /^\n?$/o
150 3 1 if (defined $_[$start])
155 1 2 $_[$start] =~ /\n/o ? :
162 0 3 if (not $trailingMeta and $$topic{'TEXT'} =~ /^(%META:([^{]+){(.*)}%\n)/)
190 1 6 if $key_count < 0
191 6 0 unless ($done{$type})
193 0 6 unless exists $$topic{$type}
198 1 5 if ($type eq 'TEXT') { }
201 1 0 if $key_count >= 0
204 0 5 unless keys %{$$topic{$type};}
223 1 9 unless $count % 2
239 5 9 if (ref $v eq 'HASH') { }
240 4 1 if $string ne ''
248 9 1 if ($string eq '')
250 7 2 if defined $$hash{'name'}
252 7 22 if $_ eq 'name'
267 0 0 unless ($elements[0] =~ /^%META/)
280 0 0 if (ref $$hash{$_} eq 'HASH') { }