Condition Coverage

blib/lib/MogileFS/Host.pm
Criterion Covered Total %
condition 9 43 20.9


and 3 conditions

line !l l&&!r l&&r condition
31 69 0 0 $$self{'altip'} && $$self{'altmask'}
39 0 0 0 $state && $state =~ /\A(?:alive|dead|down)\z/
57 15 0 0 $$self{'mask'} and $$self{'altip'}
15 0 0 $$self{'mask'} and $$self{'altip'} and $MogileFS::REQ_altzone || $MogileFS::REQ_client_ip && $$self{'mask'}->match($MogileFS::REQ_client_ip)
82 0 0 52 $$self{'observed_state'} && $$self{'observed_state'} eq 'reachable'
87 0 0 0 $$self{'observed_state'} && $$self{'observed_state'} eq 'unreachable'

or 2 conditions

line l !l condition
143 0 1 $opts ||= {}
149 0 14 $opts ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
52 1 0 0 $_[0]{'http_get_port'} || $_[0]{'http_port'}
57 0 0 0 $MogileFS::REQ_altzone || $MogileFS::REQ_client_ip && $$self{'mask'}->match($MogileFS::REQ_client_ip)
96 0 0 0 $$self{'mogstored_conn'} ||= 'MogileFS::Connection::Mogstored'->new($self->ip, $self->sidechannel_port)
114 0 15 0 $$opts{'ip'} || $self->ip
121 0 0 0 $$opts{'ip'} || $self->ip
122 0 0 0 $$opts{'port'} || $self->http_port
150 0 14 0 delete $$opts{'port'} || $self->http_port