Branch Coverage

lib/Mojolicious/Plugin/Vparam/Bool.pm
Criterion Covered Total %
branch 26 26 100.0


line true false branch
6 1 17 unless defined $_[0]
13 6 12 unless defined $str
14 2 10 unless length $str
15 4 6 if $str =~ /^(?:0|no|false|fail)$/i
16 5 1 if $str =~ /^(?:1|yes|true|ok)$/i
21 6 14 unless defined $_[0]
22 1 13 unless $_[0] =~ /^(?:0|1|)$/
28 6 14 unless defined $str
29 2 12 if $str =~ /^\s*$/
30 2 10 if $str =~ /^(?:nil|null|undef|undefined|nan)$/i
31 4 6 if $str =~ /^(?:0|no|false|fail)$/i
32 5 1 if $str =~ /^(?:1|yes|true|ok)$/i
50 4 16 defined $_[1] && $_[1] eq '' ? :