lib/String/BooleanSimple.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 14 | 92.8 |
line | true | false | branch |
---|---|---|---|
122 | 102 | 54 | boolean($value, $def_value) == &true() ? : |
124 | 54 | 102 | $ret ? : |
143 | 306 | 318 | if ($value =~ /^(true|yes|active|enabled|on|y|ok|positive|[1-9])$/) |
145 | 162 | 462 | if ($value =~ /^(false|no|inactive|disabled|off|n|negative|not ok|[0])$/) |
148 | 156 | 468 | if ($ret == 2) |
150 | 156 | 0 | if ($def_value ne '') { } |
159 | 408 | 216 | $ret ? : |