Branch Coverage

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


line true false branch
15 0 0 if ($exit)
16 0 0 if ($ALLOW_FAIL) { }
33 0 0 unless $ENV{'GHA_TESTING_COVER'} =~ /^(true|1)$/i
52 0 0 if (/--allow-fail/) { }
0 0 elsif (/--dry-run/) { }
0 0 elsif (/--configure/) { }
0 0 elsif (/--auto/) { }
69 0 0 if (@modules)
78 0 0 unless open my $fh, '<', $file
86 0 0 unless -f $file
90 0 0 if (eval { do { require JSON::MaybeXS; 1 } }) { }
0 0 elsif (eval { do { require JSON::PP; 1 } }) { }
104 0 0 unless ref $hash eq 'HASH'
112 0 0 unless -f $file
116 0 0 if (eval { do { require JSON::XS; 1 } }) { }
125 0 0 unless ref $hash eq 'HASH'
132 0 0 unless my $meta = read_json('META.json') || read_yaml('META.yml')
138 0 0 if ($meta->{'metatype'} eq 'JSON') { }
140 0 0 unless $meta->{'prereqs'}{$phase}{'requires'}
141 0 0 unless $meta->{'prereqs'}{$phase}{'recommends'}
142 0 0 unless $meta->{'prereqs'}{$phase}{'suggests'}
146 0 0 unless $meta->{'configure_requires'}
147 0 0 unless $meta->{'build_requires'}
150 0 0 if (@need)
154 0 0 if (@want and &SHOULD_INSTALL_OPTIONAL_DEPS())
163 0 0 unless my $meta = read_json('MYMETA.json') || read_yaml('MYMETA.yml') || read_json('META.json') || read_yaml('META.yml')
169 0 0 if ($meta->{'metatype'} eq 'JSON') { }
171 0 0 unless $meta->{'prereqs'}{$phase}{'requires'}
172 0 0 unless $meta->{'prereqs'}{$phase}{'recommends'}
173 0 0 unless $meta->{'prereqs'}{$phase}{'suggests'}
177 0 0 unless $meta->{'configure_requires'}
178 0 0 unless $meta->{'build_requires'}
179 0 0 unless $meta->{'requires'}
180 0 0 unless $meta->{'test_requires'}
181 0 0 unless $meta->{'recommends'}
184 0 0 if (&SHOULD_INSTALL_GITHUB_DEPS())
188 0 0 if (&SHOULD_INSTALL_COVERAGE_DEPS())
194 0 0 if (@need)
198 0 0 if (@want and &SHOULD_INSTALL_OPTIONAL_DEPS())
208 0 0 if defined $installer
210 0 0 if ($output =~ /cpanminus/) { }
215 0 0 if ($output =~ /install/) { }
229 0 0 if ($DRY_RUN)
234 0 0 if (&INSTALLER() eq 'cpanm')
238 0 0 if (&INSTALLER() eq 'cpm')
248 0 0 if ($DRY_RUN)
253 0 0 if (&INSTALLER() eq 'cpanm')
257 0 0 if (&INSTALLER() eq 'cpm')
265 0 0 if -f &CPAN_CONFIG_FILENAME()