Branch Coverage

lib/Petal/I18N.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
35 47 31 unless ref $tree
44 6 144 if ($value eq $Namespace)
46 0 6 unless $key =~ /^xmlns\:/
57 112 26 /^_/ ? :
58 4 27 if $tag eq '~comment' or $tag eq '~pi' or $tag eq '~declaration'
62 3 24 if ($$tree{"${Prefix}:attributes"})
73 3 0 if ($attribute =~ /\s/) { }
96 1 2 if $@
105 9 18 if (exists $$tree{"${Prefix}:translate"})
110 8 1 if (defined $$tree{"${Prefix}:translate"} and $$tree{"${Prefix}:translate"} ne '') { }
145 5 11 $_ =~ /$Petal::Hash::String::TOKEN_RE/gms ? :
163 27 0 if (defined $tree->{'_content'})
172 0 10 unless defined $string
187 14 5 unless ref $node
212 17 7 unless (ref $node)