Branch Coverage

blib/lib/Version/libversion/PP.pm
Criterion Covered Total %
branch 76 84 90.4


line true false branch
76 0 0 unless (ref $right)
97 192342 0 if ($string =~ /^([[:alpha:]]+)/)
109 118832 0 if ($string =~ /^([[:digit:]]+)/)
127 2960 147310 if $string =~ /^(alpha|beta|rc)$/
128 581 146729 if $string =~ /^pre/
129 2862 143867 if $string =~ /^(post|patch)/
130 8 143859 if $string =~ /^(pl|errata)$/
131 22 143837 if $string eq "p" and $flags & 1
143 131296 118832 if ($string =~ /^[[:alpha:]]/) { }
149 125055 6241 if ($keyword_class == 0)
150 10 125045 $flags & 2 ? :
153 3367 127929 if $keyword_class == 1
154 2874 128422 if $keyword_class == 2
165 38577 80255 length $number == 0 ? :
177 18 11745 $flags & 8 ? :
18 11763 $flags & 4 ? :
191 2400 250128 if length $string == 0
203 61046 189082 if ($rest =~ /^[[:alpha:]]/)
207 18974 42072 unless ($alpha_rest =~ /^[[:digit:]]/)
211 174 18 $keyword_class == 1 ? :
18782 192 $keyword_class == 0 ? :
234 53328 79980 if $o1 < $o2
235 31226 48754 if $o1 > $o2
243 5516 43238 if $u1_is_empty and $u2_is_empty
244 0 43238 if $u1_is_empty
245 0 43238 if $u2_is_empty
250 31198 12040 if ($u1_is_alpha and $u2_is_alpha)
252 16725 14473 if $v1 lt $v2
253 11074 3399 if $v1 gt $v2
258 0 12040 if $u1_is_alpha
259 0 12040 if $u2_is_alpha
264 8 12032 if $len1 < $len2
265 3234 8798 if $len1 > $len2
280 40 118063 if $v1 eq $v2 and $v1_flags == $v2_flags
285 8 118055 $v1_flags & 12 ? :
286 44 118019 $v2_flags & 12 ? :
297 115619 17689 if $res != 0
299 2444 1387 if not length $v1 || length $v2 and $v1_extra_components == 0 and $v2_extra_components == 0 and not @v1_components and not @v2_components
317 4743 261873 if @{$v_components;}
319 252528 9345 if (length ${$v_string;})
333 36 9309 if (${$v_extra;} > 0)
345 155 72 @_ == 2 ? :