blib/lib/MogileFS/Host.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 8 | 46 | 17.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
32 | 69 | 0 | 0 | $self->{'altip'} && $self->{'altmask'} |
39 | 0 | 0 | 0 | $state && $state =~ /\A(?:alive|dead|down|readonly)\z/ |
57 | 15 | 0 | 0 | $self->{'mask'} and $self->{'altip'} |
0 | 0 | 0 | $self->{'mask'} and $self->{'altip'} and $MogileFS::REQ_altzone || $MogileFS::REQ_client_ip && $self->{'mask'}->match($MogileFS::REQ_client_ip) | |
90 | 0 | 0 | 52 | $self->{'observed_state'} && $self->{'observed_state'} eq 'reachable' |
95 | 0 | 0 | 0 | $self->{'observed_state'} && $self->{'observed_state'} eq 'unreachable' |
line | l | !l | condition |
---|---|---|---|
151 | 0 | 1 | $opts ||= {} |
157 | 0 | 14 | $opts ||= {} |
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) |
85 | 0 | 0 | 0 | $_[0]->alive || $_[0]->readonly |
105 | 0 | 0 | 0 | $self->{'mogstored_conn'} ||= 'MogileFS::Connection::Mogstored'->new($self->ip, $self->sidechannel_port) |
122 | 0 | 15 | 0 | $opts->{'ip'} || $self->ip |
129 | 0 | 0 | 0 | $opts->{'ip'} || $self->ip |
130 | 0 | 0 | 0 | $opts->{'port'} || $self->http_port |
158 | 0 | 14 | 0 | delete $opts->{'port'} || $self->http_port |