blib/lib/Nagios/Plugin/Config.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 24 | 54.1 |
line | true | false | branch |
---|---|---|---|
21 | 13 | 0 | unless ($_[0]) |
23 | 13 | 0 | if ($ENV{'NAGIOS_CONFIG_PATH'}) |
26 | 13 | 13 | if -f $file |
28 | 0 | 13 | if -f $file |
33 | 0 | 0 | if -f $file |
37 | 0 | 0 | if -f $file |
42 | 0 | 13 | unless $_[0] |
52 | 0 | 13 | ref $_[0] ? : |
54 | 0 | 13 | unless defined $_[0] |
63 | 104 | 351 | if /^\s*(?:\#|\;|$)/ |
66 | 104 | 247 | if (/^\s*\[\s*(.+?)\s*\]\s*$/) |
75 | 247 | 0 | if (/^\s*([^=]+?)\s*=\s*(.*?)\s*$/) |