Branch Coverage

lib/App/TimeTracker/Proto.pm
Criterion Covered Total %
branch 24 36 66.6


line true false branch
32 0 7 unless (-d $home)
62 13 0 if (-e $file and -s $file) { }
93 0 1 $self->has_project ? :
104 0 0 if (&blessed($e) and $e->can('message')) { }
131 1342 308 unless $method =~ /^cmd_/
137 6 16 $command ? :
138 21 0 if (defined $commands{$cmd})
141 0 21 if ($cmd eq 'start' and not $self->has_project)
151 17 5 if ($load_attribs_for_command and $class->has_method($load_attribs_for_command))
172 8 6 if (defined $project)
173 8 0 if (my $project_config = $projects->{$project}) { }
189 15 47 if (-e $config_file)
197 3 12 unless $self->has_project
201 14 48 if $dir->parent eq $dir
203 0 48 if (my $parent = $this_config->{'parent'}) { }
204 0 0 if ($projects->{$parent}) { }
220 9 5 if (-e $self->global_config_file)
253 0 14 unless (-e $file and -s $file)