Branch Coverage

blib/lib/Regex/Range/Number.pm
Criterion Covered Total %
branch 39 68 57.3


line true false branch
18 0 0 $_[1] > $_[0] ? :
0 0 $_[0] > $_[1] ? :
25 0 0 if not $u{$$_{$_[1]}} and do { $u{$$_{$_[1]}} = 1 }
35 0 30 $_[0][1] ? :
36 18 12 if not $s or $s == 1
40 0 15 $_[1] - $_[0] == 1 ? :
46 0 0 if ($_[1]{'isPadded'})
48 0 0 $d == 0 ? :
0 0 !$d ? :
53 15 0 $_[0] < $_[1] ? :
56 15 0 $_[0] < $_[1] ? :
83 1 29 if $s == $st
92 15 44 $n->[0] != 0 || $n->[1] != 9 ? :
29 59 $n->[0] == $n->[1] ? :
94 26 3 if $d
103 0 30 if (not $tok->{'isPadded'} and $p and $p->{'pattern'} eq $o->{'pattern'})
104 0 0 if scalar @{$p->{'digits'};} > 1
110 0 30 if $tok->{'isPadded'}
123 22 0 if (not $i || $helper{'contains'}->($c, 'string', $e)) { }
0 0 elsif ($i and $helper{'contains'}->($c, 'string', $e)) { }
147 8 16 if ref $_[0] eq 'Regex::Range::Number'
150 4 20 if (ref $start eq 'ARRAY')
151 1 3 unless ref $max eq 'HASH'
154 2 2 $max->{'capture'} ? :
157 6 6 $max->{'individual'} ? :
162 0 20 unless defined $max or $start == $max
168 5 15 if $cache{$key}
172 8 7 if ($b - $a == 1)
174 4 4 if $options->{'capture'}
184 0 7 $helper{'padding'}->($a) || $helper{'padding'}->($b) ? :
190 0 7 if ($a < 0)
191 0 0 $b < 0 ? :
196 7 0 if $b >= 0
198 4 3 if $capture