Branch Coverage

blib/lib/Mojolicious/Plugin/Cron.pm
Criterion Covered Total %
branch 16 20 80.0


line true false branch
17 0 2 unless ref $cronhashes eq 'HASH'
27 1 1 if (ref((values %$cronhashes)[0]) eq 'CODE') { }
49 0 7 unless ref $cronhash->{'crontab'} eq ''
51 0 7 unless ref $code eq 'CODE'
60 24 4 unless ($all_proc)
65 2 19 if ($all_proc) { }
72 0 19 unless my $handle_sem = $sem->open('>')
75 15 4 if (-e $dat && $dat->slurp // '') =~ /(\d+)/u
78 18 1 if ($rtime != $time)
85 20 1 if $fire