Branch Coverage

blib/lib/WE_Frontend/Publish/Rsync.pm
Criterion Covered Total %
branch 27 80 33.7


line true false branch
31 0 2 $self->Config->staging->stagingext && $self->Config->staging->stagingext->{'rsyncexe'} ? :
40 0 2 $self->Config->staging->stagingext && $self->Config->staging->stagingext->{'deleteold'} ? :
59 1 1 if (defined $since)
69 2 0 ref $self->Config->project->stagingextracgi eq 'ARRAY' ? :
77 0 2 if (defined $liveuser and not defined $livehost)
80 0 2 if (not defined $pubhtmldir or $pubhtmldir eq '')
83 0 2 if (@extracgi and !defined($livecgidirectory) || $livecgidirectory eq '')
88 0 2 if ($v)
91 0 0 defined $livehost ? :
0 0 defined $liveuser ? :
92 0 0 @extracgi ? :
94 0 0 $deleteold ? :
105 0 2 if ($self->Config->project->stagingexceptpat)
108 0 2 if ($self->Config->project->stagingexcept)
112 0 2 if ($self->Config->project->stagingadditional)
122 2 0 if (@extracgi)
125 0 2 if (defined $livehost)
129 0 2 if (not $do_exec) { }
142 0 2 unless ($do_exec)
147 0 2 if (defined $livehost)
151 0 2 if ($deleteold)
170 0 2 if (defined $liveuser and defined $livehost)
174 0 2 if ($self->Config->project->projectext and $self->Config->project->projectext->{'extrastagingsub'})
176 0 0 if ($do_exec) { }
187 0 2 if (not $do_exec) { }
190 0 2 if (defined $v and $v > 1)
194 0 2 if ($? / 256 != 0)
197 0 0 if $v
202 2 0 if (@extracgi)
204 0 2 if (not $do_exec) { }
207 0 2 if (defined $v and $v > 1)
211 0 2 if ($? / 256 != 0)
214 0 0 if $v
259 0 0 if ($v)
265 0 0 unless ($do_exec)
267 0 0 if ($self->WE_Frontend::Publish::Rsync::_deleteold)
275 0 0 if (defined $liveuser and defined $liversakey)
285 0 0 if (defined $livehost)
295 0 0 if ($do_exec)
296 0 0 if (system @cmd)