Branch Coverage

blib/lib/Locale/PO/Callback.pm
Criterion Covered Total %
branch 32 58 55.1


line true false branch
37 0 3 if ($is_string) { }
38 0 0 unless open PO, '<', \$filename
40 0 3 unless open PO, "<$filename"
69 21 0 if defined $escapes{$char}
90 3 15 if ($first) { }
92 3 0 if ($$stanza{'msgid'} eq '') { }
120 0 15 unless defined $$stanza{'comments'}
125 3 6 if ($comment =~ /^#: (.*):(\d*)$/) { }
6 0 elsif ($comment =~ /^#, (.*)$/) { }
142 15 3 if (defined $$stanza{'msgid'} or defined $$stanza{'msgstr'} or defined $$stanza{'msgstr[0]'} or defined $$stanza{'headers'})
153 15 63 if (/^$/) { }
12 51 elsif (/^#/) { }
21 30 elsif (/^"/) { }
30 0 elsif (/^([^ ]*) (".*)/) { }
168 0 3 unless close PO
206 0 2 unless $callback
216 16 16 unless defined $text
224 16 0 if (length($keyword) + 4 + length($text) <= $max_width)
240 0 0 if (length $temp . $_ >= $max_width) { }
241 0 0 if ($temp) { }
252 0 0 if $temp
259 8 3 if ($$stanza{'type'} eq 'translation') { }
3 0 elsif ($$stanza{'type'} eq 'header') { }
0 0 elsif ($$stanza{'type'} eq 'other') { }
260 0 8 if $$stanza{'comments'}
275 2 1 if $$stanza{'comments'}
286 21 1 if defined $seen{$header}
312 0 0 if ($$param{'type'} eq 'header')
317 0 0 unless $date_found