Branch Coverage

lib/App/TimeTracker/Proto.pm
Criterion Covered Total %
branch 28 40 70.0


line true false branch
33 0 7 unless (-d $home)
63 17 0 if (-e $file and -s $file) { }
94 0 1 $self->has_project ? :
105 0 0 if (&blessed($e) and $e->can('message')) { }
132 1701 378 unless $method =~ /^cmd_/
138 8 19 $command ? :
139 26 0 if (defined $commands{$cmd})
142 0 26 if ($cmd eq "start" and not $self->has_project)
150 24 3 if ($load_attribs_for_command and $class->has_method($load_attribs_for_command))
171 8 12 if (defined $project)
173 7 1 if (my $project_config = $projects->{$project})
177 20 0 if ($dir)
183 22 69 if (-e $config_file)
189 11 11 exists $this_config->{'project'} ? :
191 6 16 unless $self->has_project
194 20 71 if $dir->parent eq $dir
196 0 71 if (my $parent = $this_config->{'parent'}) { }
197 0 0 if ($projects->{$parent}) { }
213 15 5 if (-e $self->global_config_file)
246 0 24 unless (-e $file and -s $file)