Branch Coverage

lib/Schedule/Chronic/Tab.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
16 0 0 if ($tab)
27 0 0 if ($UID == 0) { }
32 0 0 if (-e '/etc/chrontab') { }
52 0 0 if (-e $tab) { }
72 0 0 unless open TAB, $tab
76 0 0 unless $_
94 0 0 unless /\S/
95 0 0 if /^\s*#/
100 0 0 if ($entry =~ /\\$/) { }
0 0 elsif ($last_entry) { }
131 0 0 unless $key and $value
135 0 0 if ($key eq 'command') { }
0 0 elsif ($key eq 'constraint') { }
156 0 0 if scalar @n_thresholds
170 0 0 unless exists $task{'command'}
172 0 0 if ($good) { }
181 0 0 unless exists $task{'last_ran'}
182 0 0 unless exists $task{'only_once'}
214 0 0 unless open TAB, ">$tab"
224 0 0 unless ($$task{'_chrontab'} eq $tab)
233 0 0 if ($$task{'only_once'} == 1 and $$task{'last_ran'} > 0)
245 0 0 if ($key eq 'command') { }
0 0 elsif ($key eq 'constraints') { }
0 0 elsif ($key eq 'last_ran' or $key eq 'notify' or $key eq 'only_once') { }
262 0 0 if (exists $$constraints_set{$_}{'thresholds'})
275 0 0 unless ($key eq 'only_once' and $$task{$key} == 0)