Branch Coverage

blib/lib/App/CISetup/Travis/ConfigFile.pm
Criterion Covered Total %
branch 42 56 75.0


line true false branch
85 0 5 unless $create or $travis->{'before_install'} and grep {/perl-travis-helper|travis-perl/;} @{$$travis{'before_install'};}
100 1 9 unless $self->perl_caching
101 1 8 if exists $travis->{'cache'}
112 0 10 if (@{$travis->{'script'} // [];} and @{$travis->{'script'};} > 3 or $travis->{'install'} and grep {not /cpan-install/;} @{$travis->{'install'};} || @{$travis->{'install'};} > 2) { }
137 5 5 if $i < 0
140 9 1 if $self->perl_caching
144 0 10 if @{$travis->{'before_install'};} > 1
177 30 0 unless grep {/\Q$perl\E/;} @{$$travis{'perl'};}
184 2 8 if ($self->force_threaded_perls or $has_xs) { }
200 2 8 if grep {$_ eq 'blead-thr';} @{$$travis{'perl'};}
208 1 0 if $_->{'perl'} eq $latest
9 1 unless grep {$_->{'env'} eq 'COVERAGE=1' if $_->{'perl'} eq $latest;} @include
214 11 1 unless grep {$_->{'perl'} eq $blead;} @allow_failures
260 1 9 $travis->{'addons'} && $travis->{'addons'}{'apt'} && $travis->{'addons'}{'apt'}{'packages'} ? :
263 10 0 if $travis->{'perl'}
264 10 0 if @addons
274 7 3 unless $self->has_email_address
275 2 1 unless $travis->{'addons'} and $travis->{'addons'}{'coverity_scan'}
284 3 7 if ($self->has_email_address)
292 0 10 if ($self->has_slack_key and $self->has_github_user)
298 0 0 unless ($slack)
303 0 0 unless my $exe = which('travis')
316 0 0 if $stderr
379 18 2 unless $block =~ /coverity_scan:\n(.+)(?=\S|\z)/ms
406 1 9 $self->force_threaded_perls ? :
9 1 $self->perl_caching ? :
411 3 7 if $self->has_email_address
413 1 9 if $self->has_github_user