Branch Coverage

blib/lib/App/Git/Workflow/Command/UpToDate.pm
Criterion Covered Total %
branch 43 64 67.1


line true false branch
30 1 15 unless get_options(\%option, "tag|t=s", "branch|b=s", "local|l!", "remote|r!", "format|f=s", "quick|q!", "include|i=s", "exclude|e=s", "all", "max_history|max-history|m=i", "fetch|F", "fix|x")
52 1 14 if (not $self->can($action)) { }
1 19 elsif ($action eq 'do_show' and not $self->can($format)) { }
68 1 12 if $option{'fetch'}
71 0 13 if ($option{'branch_age'})
75 7 6 if ($action eq "do_show")
80 0 13 if ($option{'verbose'})
93 2 11 if $action eq "do_show" and $option{'format'} eq "test"
103 0 7 if ($option{'verbose'})
122 1 3 if $ans
123 1 3 if $ans
128 3 1 if ($bad) { }
129 1 2 if ($option{'fix'})
160 0 7 $option{'remote'} ? :
166 0 14 if $option{'include'} and not $branch =~ /$option{'include'}/
167 0 14 if $option{'exclude'} and $branch =~ /$option{'exclude'}/
172 0 14 unless $log
177 4 10 if ($time < $releases[-1]{'time'})
178 0 4 if $option{'verbose'} and $option{'verbose'} > 1
187 0 10 unless $released->{'branches'}{$branch}
190 10 0 $released == $releases[-1] ? :
194 0 10 if not $option{'all'} || $option{'verbose'} and $found
197 0 0 $found ? :
0 10 if $option{'quick'}
208 1 1 if $max[0] < length $row->[0]
209 2 0 if $max[1] < length $row->[1]
210 1 1 if $max[2] < length $row->[2]
222 1 1 $option{'format'} eq 'tab' ? :
275 0 0 unless $row or $row->[2]
277 2 0 $row->[0] eq $releases[-1]{'name'} ? :
278 2 0 $row->[0] eq $releases[-1]{'name'} ? :
293 0 0 unless is($row->[0], $releases[-1]{'name'}, $row->[1] . " is upto date")