Branch Coverage

blib/lib/PPI/Token/Number/Version.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
78 1760 1339 if $char =~ /\d/o
80 191 1148 if ($char eq "_")
81 183 8 unless $t->{'token'}{'content'} =~ /\.$/
85 8 0 unless $t->{'token'}{'content'} =~ /\..+\./
92 8 1140 if ($char eq ".")
93 2 6 if ($t->{'token'}{'content'} =~ /\.$/) { }
99 2 0 unless $t->{'token'}{'content'} =~ /\..+\./
119 498 2553 unless $t->{'line'} =~ /\G(v\d[_\d]*(?:\.\d[_\d]*)+|v\d[_\d]*\b)/cg
125 14 2539 if not $content =~ /\./ and $t->__current_token_is_forced_word($content)