Branch Coverage

blib/lib/Daemon/Shutdown.pm
Criterion Covered Total %
branch 0 38 0.0


line true false branch
153 0 0 if not $params{$_}
171 0 0 unless ($params{'config'})
174 0 0 unless (-f $params{'config'})
192 0 0 if (-f $filepath) { }
261 0 0 if ($params{'verbose'} > 0)
283 0 0 'User'->Login eq 'root' ? :
286 0 0 unless ($$self{'is_root'})
300 0 0 if ($@)
308 0 0 if ($$self{'params'}{'shutdown_after_triggered_monitors'} eq 'all' or $$self{'params'}{'shutdown_after_triggered_monitors'} > $num_monitors)
333 0 0 unless (defined $toggle and $toggle =~ /^0|1$/)
338 0 0 if ($toggle and not $$self{'triggered_monitors'}{$monitor_name}) { }
0 0 elsif ($$self{'triggered_monitors'}{$monitor_name} and not $toggle) { }
349 0 0 if ($$self{'num_triggered_monitors'} >= $$self{'params'}{'shutdown_after_triggered_monitors'})
366 0 0 if ($$self{'params'}{'test'}) { }
374 0 0 if ($$self{'params'}{'shutdown_args'})
378 0 0 if ($$self{'params'}{'use_sudo'})
388 0 0 if ($err)
391 0 0 if ($$self{'params'}{'exit_after_trigger'})
426 0 0 if ($monitor->run) { }