Branch Coverage

blib/lib/Dancer2/Plugin/ProgressStatus.pm
Criterion Covered Total %
branch 16 30 53.3


line true false branch
21 0 9 unless my $dir = $dsl->config->{'plugins'}{'ProgressStatus'}{'dir'}
23 0 9 unless (-d $dir)
24 0 0 unless File::Path::make_path($dir)
57 0 4 unless ($file->is_file)
73 3 2 unless (ref $args)
79 0 1 unless ($name or $progress_id)
82 1 4 if $progress_id
85 1 4 if ($file->is_file)
89 0 1 if ($in_progress and $$d{'pid'} != $$) { }
1 0 elsif ($in_progress) { }
90 0 0 if (kill 0, $$d{'pid'})
102 4 16 $is_finished ? :
118 2 14 if ($$args{$key})
132 0 0 if ($file->exists)
136 0 0 if ($in_progress and $$d{'pid'} != $$ and kill 0, $$d{'pid'})