Branch Coverage

blib/lib/Data/Random/Structure/UTF8.pm
Criterion Covered Total %
branch 44 58 75.8


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 8836 0 defined $options{'min'} ? :
91 8836 0 defined $options{'max'} ? :
112 8836 9603 if ($@ or not defined $rc)
113 0 8836 unless ($@ =~ /how to generate (.+?)\R/)
118 8836 0 if ($type eq 'string-UTF8') { }
131 609 1227 if exists $looking_for->{'numbers'} and $looking_for->{'numbers'} == 1
132 609 1227 if exists $looking_for->{'strings-unicode'} and $looking_for->{'strings-unicode'} == 1
133 609 1227 if exists $looking_for->{'strings-plain'} and $looking_for->{'strings-plain'} == 1
134 9 1827 if exists $looking_for->{'strings'} and $looking_for->{'strings'} == 1
149 19811 2453 if ($aref eq '') { }
1251 1202 elsif ($aref eq 'ARRAY') { }
1202 0 elsif ($aref eq 'HASH') { }
150 5074 14737 if (&looks_like_number($inp))
151 396 4678 if $looking_for & 1
154 13943 794 if (_has_utf8($inp))
155 588 13355 if $looking_for & 2
158 282 512 if $looking_for & 4
163 676 7072 if $r
168 372 6154 if $r
170 302 5852 if $r