Branch Coverage

blib/lib/App/Memcached/Tool/Util.pm
Criterion Covered Total %
branch 13 18 72.2


line true false branch
27 0 14 if is_unixsocket($string)
30 5 9 if (&first(sub { $_ eq $string; } , MODES()))
33 2 7 if ($hostname =~ /([^\s:]+):\d+/)
36 4 5 if gethostbyname $hostname
43 10 10 unless $base_addr
44 0 10 if is_unixsocket($base_addr)
45 5 5 if $base_addr =~ /([^\s:]+):\d+/
51 0 0 unless $App::Memcached::Tool::DEBUG
59 0 24 if -e $file and -S $file