Branch Coverage

blib/lib/Data/Random/Structure/UTF8.pm
Criterion Covered Total %
branch 45 60 75.0


line true false branch
17 3 2 if (exists $options{'only-unicode'})
18 3 0 if (defined $options{'only-unicode'})
45 7 7 unless defined $m
48 1 6 if ($m == 1) { }
2 4 elsif ($m > 1) { }
77 0 0 if ($arand < 0.2) { }
0 0 elsif ($arand < 0.4) { }
0 0 elsif ($arand < 0.6) { }
0 0 elsif ($arand < 0.8) { }
90 8911 0 defined $options{'min'} ? :
91 8911 0 defined $options{'max'} ? :
112 8911 10520 if ($@ or not defined $rc)
113 0 8911 unless ($@ =~ /how to generate (.+?)\R/)
118 8911 0 if ($type eq 'string-UTF8') { }
131 612 1346 if exists $looking_for->{'numbers'} and $looking_for->{'numbers'} == 1
132 720 1238 if exists $looking_for->{'strings-unicode'} and $looking_for->{'strings-unicode'} == 1
133 611 1347 if exists $looking_for->{'strings-plain'} and $looking_for->{'strings-plain'} == 1
134 11 1947 if exists $looking_for->{'strings'} and $looking_for->{'strings'} == 1
152 20099 2466 if ($aref eq '' or $aref eq 'SCALAR') { }
1243 1223 elsif ($aref eq 'ARRAY') { }
1223 0 elsif ($aref eq 'HASH') { }
153 0 20099 if ($aref eq 'SCALAR')
154 5381 14718 if (&looks_like_number($inp))
155 402 4979 if $looking_for & 1
158 13939 779 if (_has_utf8($inp))
159 602 13337 if $looking_for & 2
162 288 491 if $looking_for & 4
167 677 7238 if $r
172 378 6157 if $r
174 323 5834 if $r