Branch Coverage

blib/lib/App/GhaInstall.pm
Criterion Covered Total %
branch 0 110 0.0


line true false branch
16 0 0 unless $ENV{'GHA_TESTING_COVER'} =~ /^(true|1)$/i
31 0 0 if defined $installer
32 0 0 if ($ENV{'GHA_INSTALL_BACKEND'}) { }
0 0 elsif ($] lt '5.008001') { }
40 0 0 if ($output =~ /cpanminus/) { }
45 0 0 if ($output =~ /install/) { }
53 0 0 if $installer eq 'cpan'
63 0 0 if (/--allow-fail/) { }
0 0 elsif (/--dry-run/) { }
0 0 elsif (/--bootstrap/) { }
0 0 elsif (/--configure/) { }
0 0 elsif (/--auto/) { }
72 0 0 if &INSTALLER() eq 'cpan'
85 0 0 if (@modules)
94 0 0 unless open my $fh, '<', $file
102 0 0 unless -f $file
106 0 0 if (eval { do { require JSON::MaybeXS; 1 } }) { }
0 0 elsif (eval { do { require JSON::PP; 1 } }) { }
120 0 0 unless ref $hash eq 'HASH'
128 0 0 unless -f $file
132 0 0 if (eval { do { require JSON::XS; 1 } }) { }
141 0 0 unless ref $hash eq 'HASH'
148 0 0 unless my $meta = read_json('META.json') || read_yaml('META.yml')
154 0 0 if ($meta->{'metatype'} eq 'JSON') { }
156 0 0 unless $meta->{'prereqs'}{$phase}{'requires'}
157 0 0 unless $meta->{'prereqs'}{$phase}{'recommends'}
158 0 0 unless $meta->{'prereqs'}{$phase}{'suggests'}
162 0 0 unless $meta->{'configure_requires'}
163 0 0 unless $meta->{'build_requires'}
166 0 0 if (@need)
170 0 0 if (@want and &SHOULD_INSTALL_OPTIONAL_DEPS())
179 0 0 unless my $meta = read_json('MYMETA.json') || read_yaml('MYMETA.yml') || read_json('META.json') || read_yaml('META.yml')
185 0 0 if ($meta->{'metatype'} eq 'JSON') { }
187 0 0 unless $meta->{'prereqs'}{$phase}{'requires'}
188 0 0 unless $meta->{'prereqs'}{$phase}{'recommends'}
189 0 0 unless $meta->{'prereqs'}{$phase}{'suggests'}
193 0 0 unless $meta->{'configure_requires'}
194 0 0 unless $meta->{'build_requires'}
195 0 0 unless $meta->{'requires'}
196 0 0 unless $meta->{'test_requires'}
197 0 0 unless $meta->{'recommends'}
200 0 0 if (&SHOULD_INSTALL_GITHUB_DEPS())
204 0 0 if (&SHOULD_INSTALL_COVERAGE_DEPS())
210 0 0 if (@need)
214 0 0 if (@want and &SHOULD_INSTALL_OPTIONAL_DEPS())
224 0 0 if ($exit)
225 0 0 if ($ALLOW_FAIL) { }
238 0 0 if ($DRY_RUN)
243 0 0 if (&INSTALLER() eq 'cpanm')
247 0 0 if (&INSTALLER() eq 'cpm')
257 0 0 if ($DRY_RUN)
262 0 0 if (&INSTALLER() eq 'cpanm')
266 0 0 if (&INSTALLER() eq 'cpm')
270 0 0 if (&INSTALLER() eq 'cpan')
273 0 0 if ('CPAN::Shell'->can('mandatory_dist_failed'))