Branch Coverage

blib/lib/Win32/Tracert/Parser.pm
Criterion Covered Total %
branch 16 26 61.5


line true false branch
15 0 4 unless ref $tracert_outpout eq 'ARRAY'
25 12 123 if $curline =~ /^$/
26 0 123 unless "$curline" =~ /(\w|\d)+/
31 4 119 if ($curline =~ /^\S+.*\[(?:\d{1,3}\.){3}\d{1,3}\]/) { }
0 119 elsif ($curline =~ /^\S+.*\s(?:\d{1,3}\.){3}\d{1,3}\s/) { }
50 106 13 if ($curline =~ /^\s+\d+(?:\s+(?:\<1|\d+)\sms){3}\s+.*$/) { }
5 8 elsif ($curline =~ /^\s+\d+\s+(?:\*\s+){3}.*$/) { }
0 8 elsif ($curline =~ /^\s+\d+\s+\*\s+(?:\s+(?:\<1|\d+)\sms){2}.*$/) { }
56 90 16 if ($hop_identity =~ /.*\[(?:\d{1,3}\.){3}\d{1,3}\]/) { }
16 0 elsif ($hop_identity =~ /(?:\d{1,3}\.){3}\d{1,3}/) { }
106 0 0 if ($hop_identity =~ /.*\[(?:\d{1,3}\.){3}\d{1,3}\]/) { }
0 0 elsif ($hop_identity =~ /(?:\d{1,3}\.){3}\d{1,3}/) { }
134 0 4 if scalar @{$$tracert_result{"$ip_targeted"}{'HOPS'};} < 1