Branch Coverage

blib/lib/Lingua/String.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
60 0 1 unless $class
81 0 1 if (ref $_[0] eq 'HASH') { }
1 0 elsif (scalar(@_) % 2 == 0) { }
91 0 1 unless (defined $lang)
93 0 0 unless (defined $lang)
101 0 1 unless (defined $string)
114 0 5 if ($ENV{'LANGUAGE'})
115 0 0 if ($ENV{'LANGUAGE'} =~ /^([a-z]{2})/i)
121 5 5 unless defined $val
123 5 0 if ($val =~ /^([a-z]{2})/i)
144 1 7 if (ref $_[0] eq 'HASH') { }
4 3 elsif (scalar @_ == 0) { }
2 1 elsif (scalar(@_) % 2 == 0) { }
149 1 1 if (defined $_[0])
157 0 8 unless (defined $lang)
170 1 3 if $key eq 'DESTROY'
174 2 1 if (my $value = shift())