Branch Coverage

blib/lib/Module/Install/RTx.pm
Criterion Covered Total %
branch 0 86 0.0


line true false branch
27 0 0 unless $self->name
29 0 0 unless $self->version
31 0 0 unless $self->abstract
33 0 0 unless ($extra_args->{'no_readme_generation'})
41 0 0 if (/INSTALLDIRS=(.*)/)
48 0 0 if defined $ENV{'RTHOME'}
49 0 0 if defined $ENV{'RTHOME'}
50 0 0 $ENV{'RTHOME'} ? :
53 0 0 if defined $_
54 0 0 if defined $_
56 0 0 if eval { do { local(@INC) = @look; require RT; $RT::LocalLibPath } }
60 0 0 unless my $given = $self->prompt('Path to directory containing your RT.pm:')
74 0 0 unless ($extra_args->{'deprecated_rt'})
81 0 0 if ($installdirs and $installdirs eq 'vendor') { }
91 0 0 unless $RT::StaticPath
105 0 0 if (my(@dirs) = map({'-D', $_;} grep($path{$_}, ('bin', 'html', 'sbin', 'etc'))))
109 0 0 if @po
116 0 0 if ($extra_args->{'remove_files'})
119 0 0 unless eval { do { require 'etc/upgrade/remove_files' } }
124 0 0 if $self->admin
125 0 0 if $self->admin
131 0 0 if ($remove_files)
141 0 0 if ($path{'var'} and -d $RT::MasonDataDir)
149 0 0 if (File::Glob::bsd_glob("$FindBin::Bin/etc/schema.*"))
152 0 0 if (File::Glob::bsd_glob("$FindBin::Bin/etc/acl.*"))
155 0 0 if (-e 'etc/initialdata')
156 0 0 if (grep {/\d+\.\d+\.\d+.*$/;} glob('etc/upgrade/*.*.*'))
161 0 0 if ($path{'lib'}) { }
180 0 0 if (%has_etc)
183 0 0 if $has_etc{'schema'}
186 0 0 if $has_etc{'acl'}
189 0 0 if $has_etc{'initialdata'}
194 0 0 if ($has_etc{'upgrade'})
209 0 0 if ($self->is_admin)
212 0 0 if $sorted[0] eq '4.0.0' and !$self->perl_version || '5.008003' > $self->perl_version
215 0 0 if $sorted[0] eq '4.2.0' and !$self->perl_version || '5.010001' > $self->perl_version
220 0 0 if $version eq $RT::VERSION
224 0 0 if ($sorted[-1] eq $version)
238 0 0 if ($self->is_admin)
247 0 0 if (-e $path) { }
270 0 0 if $self->is_admin
275 0 0 if ($sorted[0] eq $version)
287 0 0 unless ($RT::Config)