Branch Coverage

blib/lib/Parse/Netstat/solaris.pm
Criterion Covered Total %
branch 31 36 86.1


line true false branch
47 0 4 unless my $output = $args{'output'}
58 4 120 if ($line =~ /^UDP: IPv([46])/) { }
4 116 elsif ($line =~ /^TCP: IPv([46])/) { }
4 112 elsif ($line =~ /^Active UNIX domain sockets/) { }
18 94 elsif ($proto =~ /udp/ and $udp) { }
27 67 elsif ($proto =~ /tcp/ and $tcp) { }
36 31 elsif ($proto eq 'unix' and $unix) { }
69 3 15 if $line =~ /^\s*$/
70 3 12 if $line =~ /^\s+/
71 3 9 if $line =~ /^[- ]+$/
72 0 9 unless $line =~ /^(?P\S+?)\.(?P\w+)\s+ (?P\S+?)\.(?P\w+|\*)\s+ (?P\S+) \s*$/x
84 3 24 if $line =~ /^\s*$/
85 3 21 if $line =~ /^\s+/
86 3 18 if $line =~ /^[- ]+$/
87 0 18 unless $line =~ /^(?P\S+?)\.(?P\w+)\s+ (?P\S+?)\.(?P\w+|\*)\s+ (?P\d+) \s+ (?P\d+) \s+ (?P\d+) \s+ (?P\d+) \s+ (?P\S+) \s*$/x
102 0 36 if $line =~ /^\s*$/
103 3 33 if $line =~ /^Address\s/
105 0 33 unless $line =~ /^(?P
[0-9a-f]+)\s+ (?P\S+)\s+ (?P[0-9a-f]+)\s+ (?P[0-9a-f]+)\s+ (?: (?P\S+)\s+ (?: (?P\S+)\s+ )? )? \s*$/x