Branch Coverage

blib/lib/Locale/Maketext/Utils/Phrase/Norm/Ellipsis.pm
Criterion Covered Total %
branch 28 28 100.0


line true false branch
14 2 105 if ($bn_match =~ /[,]{2,}/)
22 8 79 if (${$string_sr;} =~ s/(?:[.]{2,}|[,]{2,})/\342\200\246/g)
34 8 79 if (${$string_sr;} =~ s/^(|\xc2\xa0|\[output\,nbsp\])\342\200\246/ \342\200\246/)
41 8 79 if (${$string_sr;} =~ s/((?:\x20|\xc2\xa0|\[output\,nbsp\])\342\200\246[\!\?\.\:])$/ELLIPSIS_END/)
45 6 81 if (${$string_sr;} =~ s/^( \342\200\246(?:\x20|\xc2\xa0|\[output\,nbsp\]))/ELLIPSIS_START/)
55 8 79 if (${$string_sr;} =~ s/\A \342\200\246(?!\x20|\xc2\xa0|\[output\,nbsp\])/ \342\200\246 /)
59 8 79 if (${$string_sr;} =~ s/\342\200\246(?:\x20|\xc2\xa0|\[output\,nbsp\]|\s)+\z/\342\200\246/)
63 8 79 if (${$string_sr;} =~ /\342\200\246\z/ and not ${$string_sr;} =~ /(?:\x20|\xc2\xa0|\[output\,nbsp\])\342\200\246\z/)
69 8 79 if (${$string_sr;} =~ s/(.{1})((?:(?<!\x20)\342\200\246|(?<!\xc2\xa0)\342\200\246(?<!\[output\,nbsp\])\342\200\246))(.{2})/$1 $2$3/g)
73 8 79 if (${$string_sr;} =~ s/(.{2})\342\200\246(?!\x20|\xc2\xa0|\[output\,nbsp\]|\z)(.{1})/$1\342\200\246 $2/g)
77 8 79 if ($medial_prob)
82 8 79 if exists $l{'ELLIPSIS_END'}
83 6 81 if exists $l{'ELLIPSIS_START'}
84 14 73 if (exists $l{'ELLIPSIS_MEDIAL'})