Condition Coverage

blib/lib/Mojar/Util.pm
Criterion Covered Total %
condition 49 61 80.3


and 3 conditions

line !l l&&!r l&&r condition
80 25 0 2 $want_camelcase and $string =~ s/\A([^\Q$separator\E]+)\Q$separator\E?//
91 5 21 1 @words and $words[-1] =~ /\A\Q$separator\E/
105 0 13 20 ($old, $new) = (shift(), shift()) and defined $new
119 8 5 22 $translator and my $p = shift @level_parts
158 12 0 1 B::svref_2object(\$value)->FLAGS & 12288 and 0 + $value eq $value
12 0 1 B::svref_2object(\$value)->FLAGS & 12288 and 0 + $value eq $value and $value * 0 == 0
170 0 6 0 $file->syswrite($_), $file->syswrite($/) and ++$count

or 2 conditions

line l !l condition
57 8 12 $syllable_sep //= '_'
73 3 24 $separator //= '_'
111 76 0 $_ // ''
133 74 2 $_->[0] //= ''
139 12 1 $parts->[0] // ''

or 3 conditions

line l !l&&r !l&&!r condition
21 1 1 11 been_numeric($val) or not defined $val
23 1 1 9 $val eq '1' or $val eq 'true'
2 1 8 $val eq '1' or $val eq 'true' or $val eq 'yes'
2 1 7 $val eq '1' or $val eq 'true' or $val eq 'yes' or $val eq 'on'
26 1 1 5 $val eq '0' or $val eq 'false'
2 1 4 $val eq '0' or $val eq 'false' or $val eq 'no'
2 1 3 $val eq '0' or $val eq 'false' or $val eq 'no' or $val eq 'off'
145 0 0 0 ref $self // $self
177 4 1 0 ref $_[0] eq 'HASH' or &reftype($_[0]) eq 'HASH'
186 8 2 0 exists $param->{$_} or croak("Missing required param ($_)")