Branch Coverage

blib/lib/Mirror/URI.pm
Criterion Covered Total %
branch 18 38 47.3


line true false branch
39 6 1 if ($self->valid)
40 6 0 if (_STRING($self->master))
43 0 6 unless (_INSTANCE $self->master, 'URI')
46 6 0 if (_STRING($$self{'timestamp'}) and not _POSINT($$self{'timestamp'}))
47 0 6 unless ($$self{'timestamp'} =~ /^(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)Z$/)
52 0 6 if ($$self{'filename'} and $$self{'filename'} ne $self->filename)
56 0 6 unless (_ARRAY0 $mirrors)
60 0 262 unless _STRING($$mirrors[$i])
146 0 4 unless (defined _STRING($root) and -d $root)
169 0 7 unless (_INSTANCE $base, 'URI')
172 0 7 unless ($base->path =~ m[/$])
185 1 6 unless (defined $self{'string'})
191 0 6 unless (ref $hash eq 'HASH')
207 1 0 if (_INSTANCE $self->master, 'URI')
219 0 1 unless (defined $uri)
222 1 0 if (_INSTANCE $uri, 'URI')
240 0 0 unless ($self->valid)
243 0 0 if ($self->is_master)
249 0 0 unless (_INSTANCE $master, $self->class)