Branch Coverage

blib/lib/Lingua/Deva.pm
Criterion Covered Total %
branch 99 118 83.9


line true false branch
187 4 12 if (defined $$self{'map'})
188 3 1 if ($$self{'map'} =~ /^(ISO15919|ITRANS|IAST|HK)$/u) { }
194 10 2 unless defined $opts{$k}
196 2 1 if (not defined $opts{'casesensitive'} and defined ${"${pkg}::CASE";})
207 63 1 unless defined $$self{"D$_"}
242 1 20015 unless defined $text
247 2 20013 $$self{'casesensitive'} ? :
279 15012 2 ref $input eq '' ? :
292 10 933212 $$self{'casesensitive'} ? :
293 189053 744169 if ($state == 0) { }
414094 330075 elsif ($state == 1) { }
330075 0 elsif ($state == 2) { }
294 114013 75040 if (exists $$C{$lct}) { }
27013 48027 elsif (exists $$V{$lct}) { }
303 1004 11013 if (not $t =~ /\p{Space}/u and $t ne $$self{'avagraha'} and $$self{'strict'} and not exists $$self{'allow'}{$t})
311 84028 330066 if (exists $$C{$lct}) { }
309066 21000 elsif (exists $$V{$lct}) { }
319 0 0 if (not $t =~ /\p{Space}/u and $t ne $$self{'avagraha'} and $$self{'strict'} and not exists $$self{'allow'}{$t})
328 216054 114021 if (exists $$C{$lct}) { }
0 114021 elsif (exists $$V{$lct}) { }
33007 81014 elsif (exists $$F{$lct}) { }
344 2000 4000 if (not $t =~ /\p{Space}/u and $t ne $$self{'avagraha'} and $$self{'strict'} and not exists $$self{'allow'}{$t})
355 6005 9009 if $state == 1 or $state == 2
398 63028 247085 if ($state == 0) { }
138050 109035 elsif ($state == 1) { }
35013 74022 elsif ($state == 2) { }
74022 0 elsif ($state == 3) { }
399 38006 25022 if (exists $$DC{$c}) { }
9007 16015 elsif (exists $$DV{$c}) { }
1000 15015 elsif ($c =~ /$Lingua::Deva::Avagraha/u) { }
411 1 4008 if (not $c =~ /\p{Space}/u and $$self{'strict'} and not exists $$self{'allow'}{$c})
418 35013 103037 if ($c =~ /$Lingua::Deva::Virama/u) { }
67016 36021 elsif (exists $$DD{$c}) { }
0 36021 elsif (exists $$DV{$c}) { }
20012 16009 elsif (exists $$DC{$c}) { }
7004 9005 elsif (exists $$DF{$c}) { }
0 9005 elsif ($c =~ /$Lingua::Deva::Avagraha/u) { }
449 0 1000 if (not $c =~ /\p{Space}/u and $$self{'strict'} and not exists $$self{'allow'}{$c})
457 28013 7000 if (exists $$DC{$c}) { }
0 7000 elsif (exists $$DV{$c}) { }
0 7000 elsif ($c =~ /$Lingua::Deva::Avagraha/u) { }
471 0 0 if (not $c =~ /\p{Space}/u and $$self{'strict'} and not exists $$self{'allow'}{$c})
479 4000 70022 if (exists $$DF{$c}) { }
52019 18003 elsif (exists $$DC{$c}) { }
0 18003 elsif (exists $$DV{$c}) { }
0 18003 elsif ($c =~ /$Lingua::Deva::Avagraha/u) { }
499 0 1000 if (not $c =~ /\p{Space}/u and $$self{'strict'} and not exists $$self{'allow'}{$c})
539 4 2 ref $input eq '' ? :
545 13 35 if (ref $a ne 'Lingua::Deva::Aksara') { }
546 0 13 $a eq $$self{'avagraha'} ? :
549 30 5 if (defined $$a{'onset'}) { }
5 0 elsif (defined $a->vowel) { }
551 30 0 defined $a->vowel ? :
556 1 34 if defined $a->final
577 3 1 ref $input eq '' ? :
581 24 9 if (ref $a eq 'Lingua::Deva::Aksara') { }
582 21 3 if defined $a->onset
583 24 0 if defined $a->vowel
584 2 22 if defined $a->final