Branch Coverage

blib/lib/Alien/Base/ModuleBuild/Repository.pm
Criterion Covered Total %
branch 46 52 88.4


line true false branch
14 32 18 ref $_[0] ? :
19 47 3 unless defined $obj->{'c_compiler_required'}
22 14 36 unless defined $location
24 15 35 if (defined $obj->{'exact_filename'} and not $location =~ m[/$])
35 0 1 if @_
41 4 23 if @_
56 8 0 if defined $self->{'exact_filename'} and $self->{'exact_version'}
63 1 25 if (not "Alien::Base::ModuleBuild"->alien_install_network and $self->is_network_fetch)
68 10 15 if ($rule eq 'warn') { }
2 13 elsif ($rule eq 'digest') { }
2 11 elsif ($rule eq 'encrypt') { }
7 4 elsif ($rule eq 'digest_or_encrypt') { }
4 0 elsif ($rule eq 'digest_and_encrypt') { }
70 1 9 unless ($self->is_secure_fetch or $self->has_digest)
78 1 1 unless ($self->has_digest)
84 1 1 unless ($self->is_secure_fetch)
90 1 6 unless ($self->is_secure_fetch or $self->has_digest)
96 3 1 unless ($self->is_secure_fetch and $self->has_digest)
108 7 12 if ($self->{'exact_filename'}) { }
114 2 10 if ($pattern)
118 0 12 unless @files
127 6 13 if ($self->{'exact_filename'} and $self->{'exact_version'}) { }
1 23 elsif ($pattern and pattern_has_capture_groups($pattern)) { }
130 6 0 if defined $self->{'sha1'}
131 1 5 if defined $self->{'sha256'}
135 17 0 if $file->{'filename'} =~ /$pattern/