blib/lib/Monitoring/Plugin/Config.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 28 | 50.0 |
line | true | false | branch |
---|---|---|---|
26 | 15 | 0 | unless ($_[0]) |
28 | 15 | 0 | if ($ENV{'MONITORING_CONFIG_PATH'} or $ENV{'NAGIOS_CONFIG_PATH'}) |
31 | 15 | 15 | if -f $file |
33 | 0 | 15 | if -f $file |
35 | 0 | 15 | if -f $file |
40 | 0 | 0 | if -f $file |
44 | 0 | 0 | if -f $file |
46 | 0 | 0 | if -f $file |
51 | 0 | 15 | unless $_[0] |
62 | 0 | 15 | ref $_[0] ? : |
64 | 0 | 15 | unless defined $_[0] |
73 | 120 | 405 | if /^\s*(?:\#|\;|$)/ |
76 | 120 | 285 | if (/^\s*\[\s*(.+?)\s*\]\s*$/) |
85 | 285 | 0 | if (/^\s*([^=]+?)\s*=\s*(.*?)\s*$/) |