Condition Coverage

blib/lib/MMM/Mirror.pm
Criterion Covered Total %
condition 9 30 30.0


and 3 conditions

line !l l&&!r l&&r condition
36 0 1 3 $infos{'uri'} and $infos{'uri'}->can('host')
196 0 0 0 $self->host eq $mirror->host and $self->source eq $mirror->source
211 0 1 0 defined $$mirror{$_} and $mirror->revision > $self->revision
220 0 0 1 $$self{'hostinfo'} and $$mirror{'hostinfo'}

or 3 conditions

line l !l&&r !l&&!r condition
35 0 4 0 $infos{'uri'} ||= 'URI'->new($infos{'url'})
43 0 3 0 $infos{'hostinfo'} ||= 'MMM::Host'->new(%infos, 'hostname', $infos{'uri'}->host)
45 0 3 0 $infos{'revision'} ||= _rev()
149 0 0 0 $$self{'random'} ||= rand()
211 1 0 1 not defined $$self{$_} or defined $$mirror{$_} and $mirror->revision > $self->revision
224 0 0 0 $$self{'hostinfo'} ||= $$mirror{'hostinfo'}