Branch Coverage

blib/lib/OpenGuides/Build.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
19 0 0 if $@
28 0 0 $config->dbtype eq 'sqlite' && defined $self->destdir ? :
42 0 0 if $@
63 0 0 if $@
68 0 0 defined $self->destdir ? :
70 0 0 defined $self->destdir ? :
71 0 0 defined $self->destdir ? :
73 0 0 defined $self->destdir ? :
81 0 0 if ($FAKE) { }
84 0 0 if ($script_filename ne 'wiki.cgi')
85 0 0 unless File::Copy::copy('wiki.cgi', $script_filename)
92 0 0 if ($copy) { }
95 0 0 if $custom_lib_path
100 0 0 unless $script_filename eq 'wiki.cgi'
104 0 0 if ($FAKE) { }
109 0 0 if (-f "$install_directory/.htaccess")
110 0 0 if (open HTACCESS, "$install_directory/.htaccess") { }
112 0 0 if (/wiki\.conf/)
121 0 0 if ($mentionswikidotconf == 0) { }
122 0 0 if (open HTACCESS, ">>$install_directory/.htaccess") { }
136 0 0 if ($FAKE) { }
140 0 0 if ($copy) { }
142 0 0 unless $script eq 'wiki.conf'
143 0 0 if $custom_lib_path
153 0 0 if ($FAKE) { }
156 0 0 unless $self->copy_if_modified('from', "templates/$template", 'to_dir', $template_path, 'flatten', 1)
160 0 0 if ($FAKE) { }
163 0 0 unless (-d $custom_template_path)
165 0 0 unless File::Path::mkpath($custom_template_path)
171 0 0 if ($FAKE) { }
174 0 0 unless $self->copy_if_modified('from', "static/$static_file", 'to_dir', $static_path, 'flatten', 1)
183 0 0 unless open my $fh, $copy
185 0 0 unless close $fh
191 0 0 unless chmod $orig_mode | 146, $copy
193 0 0 unless open $fh, ">$copy"
195 0 0 unless close $fh
196 0 0 unless chmod $orig_mode, $copy