blib/lib/Catmandu/Fix/Condition/is_true.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 12 | 12 | 100.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
27 | 1 | 2 | 1 | is_string($val) and $val eq "true" |
4 | 1 | 1 | is_bool($val) and $val | |
3 | 1 | 1 | is_number($val) and $val == 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
27 | 1 | 1 | 4 | is_bool($val) and $val or is_number($val) and $val == 1 |