Branch Coverage

lib/Rex/Commands/Cron.pm
Criterion Covered Total %
branch 0 30 0.0


line true false branch
84 0 0 unless exists $option{'user'}
92 0 0 if ($option{'ensure'} eq 'present') { }
0 0 elsif ($option{'ensure'} eq 'absent') { }
111 0 0 if ($cron->{'minute'} eq $option{'minute'} and $cron->{'hour'} eq $option{'hour'} and $cron->{'month'} eq $option{'month'} and $cron->{'day_of_week'} eq $option{'day_of_week'} and $cron->{'day_of_month'} eq $option{'day_of_month'} and $cron->{'command'} eq $option{'command'})
127 0 0 if (defined $cron_id) { }
137 0 0 if ($changed) { }
138 0 0 if (exists $option{'on_change'} and ref $option{'on_change'} eq "CODE")
226 0 0 if ($action eq 'list') { }
0 0 elsif ($action eq 'add') { }
0 0 elsif ($action eq 'delete') { }
0 0 elsif ($action eq 'env') { }
231 0 0 if ($c->add(%{$config;}))
249 0 0 if ($env_action eq 'add') { }
0 0 elsif ($env_action eq 'list') { }
0 0 elsif ($env_action eq 'delete') { }