Branch Coverage

lib/App/TimeTracker/Proto.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
33 0 7 unless (-d $home)
63 14 0 if (-e $file and -s $file) { }
94 0 1 $self->has_project ? :
105 0 0 if (&blessed($e) and $e->can('message')) { }
132 1550 350 unless $method =~ /^cmd_/
138 8 17 $command ? :
139 24 0 if (defined $commands{$cmd})
142 0 24 if ($cmd eq 'start' and not $self->has_project)
150 20 5 if ($load_attribs_for_command and $class->has_method($load_attribs_for_command))
171 8 7 if (defined $project)
172 7 1 if (my $project_config = $projects->{$project}) { }
188 15 53 if (-e $config_file)
196 3 12 unless $self->has_project
200 15 53 if $dir->parent eq $dir
202 0 53 if (my $parent = $this_config->{'parent'}) { }
203 0 0 if ($projects->{$parent}) { }
219 10 5 if (-e $self->global_config_file)
252 0 15 unless (-e $file and -s $file)