Branch Coverage

blib/lib/Sys/Statistics/Linux/SockStats.pm
Criterion Covered Total %
branch 13 16 81.2


line true false branch
86 0 1 ref $_[0] ? :
108 1 0 $$file{'path'} ? :
109 0 1 unless open my $fh, '<', $filename
112 1 5 if ($line =~ /sockets: used (\d+)/) { }
1 4 elsif ($line =~ /TCP: inuse (\d+)/) { }
1 3 elsif ($line =~ /UDP: inuse (\d+)/) { }
1 2 elsif ($line =~ /RAW: inuse (\d+)/) { }
1 1 elsif ($line =~ /FRAG: inuse (\d+)/) { }