Branch Coverage

lib/Spoon/Installer.pm
Criterion Covered Total %
branch 21 70 30.0


line true false branch
20 0 8 if ($locked and -f $file_path)
21 0 0 unless $self->quiet
25 0 8 if ($file->exists and $file->all eq $content)
26 0 0 unless $self->quiet
29 0 8 unless $self->quiet
30 0 8 if $self->file_is_binary($file_path)
38 0 8 if $self->file_is_binary($path)
40 0 8 if $self->file_is_executable($path)
42 5 3 if $self->file_is_html($path)
74 3 2 unless $content =~ /^\s/
76 3 2 unless $content =~ /\s\n\z/
85 2 5 if $class =~ /-/
86 2 3 if $class =~ /^Spoon/
87 0 3 unless my $data = $self->data($class)
93 0 9 if $self->can('resolve_install_path')
97 1 8 if $seen{$name2}++
99 8 0 if length $content
109 0 0 unless my $data = $self->data($class)
115 0 0 if $self->can('resolve_install_path')
134 0 0 unless my $first_file = $files[0]
139 0 0 $file_name =~ s/^!// ? :
142 0 0 unless -f $source_path
144 0 0 $locked ? :
153 0 0 unless my $module_path = $INC{$module}
162 0 0 if $self->file_is_binary($path)
164 0 0 if $self->file_is_executable($path)
166 0 0 if $self->file_is_html($path)
168 0 0 unless $content =~ /\n\z/
187 0 0 unless -d 'lib' and -f 'Makefile.PL'
190 0 0 unless my $source_dir = shift()
192 0 0 unless -d $source_dir
200 0 0 unless $self->quiet
206 0 0 if $@
207 0 0 if UNIVERSAL::can($name, 'compress_files')
211 0 0 $name =~ s[^lib/(.*)\.pm$][$1] ? :