Branch Coverage

blib/lib/Mirror/URI.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
41 2 3 if ($self->valid)
42 2 0 if (_STRING($self->master))
45 0 2 unless (_INSTANCE $self->master, 'URI')
48 2 0 if (_STRING($$self{'timestamp'}) and not _POSINT($$self{'timestamp'}))
49 0 2 unless ($$self{'timestamp'} =~ /^(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)Z$/)
55 0 2 unless (_ARRAY0 $mirrors)
59 0 15 unless _STRING($$mirrors[$i])
123 0 3 unless (defined _STRING($root) and -d $root)
146 0 5 unless (_INSTANCE $base, 'URI')
149 0 5 unless ($base->path =~ m[/$])
162 3 2 unless (defined $self{'string'})
168 0 2 unless (ref $hash eq 'HASH')
185 1 0 if (_INSTANCE $self->master, 'URI')
197 0 1 unless (defined $uri)
200 1 0 if (_INSTANCE $uri, 'URI')