Branch Coverage

blib/lib/Cvs/Command/Base.pm
Criterion Covered Total %
branch 15 96 15.6


line true false branch
20 0 4 unless $self->cvs($cvs)
43 3 1 if ($self->need_workdir)
47 0 3 unless defined $self->workdir
53 0 3 if ($self->go_into_workdir) { }
55 0 0 if $debug
61 0 3 if $debug
69 0 4 unless (defined $sub_command)
71 0 0 if (defined $self->result) { }
83 0 4 unless defined $cvsroot
88 0 4 unless (defined $context)
101 0 4 if $debug > 1
107 0 4 if $debug
133 0 0 if $debug
140 0 0 unless length $&
145 0 0 if ($debug)
147 0 0 if ($line =~ /^(?: |S)-> / or defined $debugline and $debugline eq 'unterminated')
153 0 0 $line =~ /\n/ ? :
165 0 0 if $line =~ /^\n*$/
177 0 0 unless $first
179 0 0 unless ($match)
181 0 0 if (defined $last) { }
190 0 0 if ($debug)
192 0 0 $match ? :
199 0 0 if $debug
212 0 0 if ($match or not defined $line or $line =~ /\n$/) { }
0 0 elsif (length $line) { }
219 0 0 if $debug
224 0 0 if (length $$self{'data'})
227 0 0 if $debug
240 0 0 if (defined $$self{'cleanup'})
242 0 0 if $debug
247 0 0 if $self->need_workdir
254 0 0 unless defined $result
256 0 0 unless defined $result->success
266 0 0 unless (defined $result)
294 0 0 if (defined $data)
329 2 18 if (defined $param and ref $param eq 'HASH')
333 1 0 if exists $$param{$_}
349 0 4 unless $$self{'args'}
363 0 0 if (@msg) { }
401 0 0 if (defined $context)
423 0 0 if (my(@match) = $line =~ /$pattern/)
427 0 0 if (defined $rv)
429 0 0 if (ref $rv eq 'Cvs::Command::Context') { }
0 0 elsif ($rv eq $self->continue) { }
0 0 elsif ($rv eq $self->finish) { }
0 0 elsif ($rv eq -4) { }
445 0 0 if (defined $context)