Branch Coverage

blib/lib/Net/OpenVPN/Agent.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
101 0 0 -e 'agent.conf' ? :
107 0 0 exists $$config{'LOG_CONF'} ? :
117 0 0 unless $config
146 0 0 unless $url
149 0 0 unless (exists $$self{'home_ip'})
153 0 0 unless ($$self{'ip'})
159 0 0 unless ($self->_decrement_request_limit)
161 0 0 if $self->_connect_to_random_server
162 0 0 if ($i == $$self{'SERVER_REQUEST_CHECK_LIMIT'})
190 0 0 if -e './user.conf' and -w './user.conf'
191 0 0 if -e './openvpn.conf' and -w './openvpn.conf'
206 0 0 if (exists $$self{'COOKIES'})
228 0 0 unless $url
233 0 0 if ($$response{'success'}) { }
257 0 0 unless (exists $$self{'server_list'} and @{$$self{'server_list'};})
259 0 0 unless $$self{'server_list'}
266 0 0 if ($$self{'vpn'}) { }
278 0 0 if ($$self{'ip'} ne '0' and $$self{'ip'} ne $current_ip and $$self{'ip'} ne $$self{'home_ip'}) { }
311 0 0 if (exists $$self{'request_limit'} and $$self{'request_limit'} > 0) { }
321 0 0 if ($diff) { }
353 0 0 if ($response) { }
386 0 0 unless $$self{'config'}
387 0 0 unless $$self{'config'}
389 0 0 defined $$server_hashref{'udp_flag'} ? :
397 0 0 unless open my $configfile, '>', './openvpn.conf'
400 0 0 unless open my $userfile, '>', './user.conf'