Condition Coverage

blib/lib/TUWF/Validate/Interop.pm
Criterion Covered Total %
condition 43 140 30.7


and 3 conditions

line !l l&&!r l&&r condition
44 100 3 0 defined $c->{'schema'}{'_analyze_minlength'} and !defined($o->{'minlength'}) || $o->{'minlength'} < $c->{'schema'}{'_analyze_minlength'}
45 99 4 0 defined $c->{'schema'}{'_analyze_maxlength'} and !defined($o->{'maxlength'}) || $o->{'maxlength'} > $c->{'schema'}{'_analyze_maxlength'}
46 96 3 4 defined $c->{'schema'}{'_analyze_min'} and !defined($o->{'min'}) || $o->{'min'} < $c->{'schema'}{'_analyze_min'}
47 97 0 6 defined $c->{'schema'}{'_analyze_max'} and !defined($o->{'max'}) || $o->{'max'} > $c->{'schema'}{'_analyze_max'}
84 10 2 1 $o->{'type'} eq 'array' and $o->{'values'}
90 4 2 6 $o->{'type'} eq 'hash' and $o->{'keys'}
106 0 0 0 $o->{'type'} eq 'hash' and $o->{'keys'}
159 0 0 0 $o->{'type'} eq 'any' and $opt{'any'}
161 0 0 0 $o->{'type'} eq 'array' and $opt{'values'} || $o->{'values'}
163 0 0 0 $o->{'type'} eq 'hash' and $o->{'keys'} || $opt{'keys'}
198 0 0 0 $o->{'type'} eq 'any' and $opt{'any'}
200 0 0 0 $o->{'type'} eq 'array' and $opt{'values'} || $o->{'values'}
202 0 0 0 $o->{'type'} eq 'hash' and $o->{'keys'} || $opt{'keys'}

or 2 conditions

line l !l condition
21 54 49 $c->{'name'} || ''
35 54 49 $c->{'name'} || ''
37 0 1 $o->{'values'} || {}
40 0 6 $o->{'keys'} ||= {}
41 0 7 $o->{'keys'}{$_} || {}
161 0 0 $opt{'array'} || 'List'
164 0 0 $opt{'indent'} //= 2
165 0 0 $opt{'level'} //= 1
185 0 0 $opt{'json_encode'} //= ''
186 0 0 $opt{'var_prefix'} //= 'e'
187 0 0 $opt{'var_num'} //= 0
203 0 0 $opt{'indent'} //= 2
204 0 0 $opt{'level'} //= 1

or 3 conditions

line l !l&&r !l&&!r condition
23 0 0 103 $o->{'type'} eq 'int' or $o->{'type'} eq 'bool'
24 5 3 95 $n eq 'int' or $n eq 'uint'
25 5 2 96 $n eq 'anybool' or $n eq 'jsonbool'
44 3 0 0 !defined($o->{'minlength'}) || $o->{'minlength'} < $c->{'schema'}{'_analyze_minlength'}
45 4 0 0 !defined($o->{'maxlength'}) || $o->{'maxlength'} > $c->{'schema'}{'_analyze_maxlength'}
46 5 1 1 !defined($o->{'min'}) || $o->{'min'} < $c->{'schema'}{'_analyze_min'}
47 5 1 0 !defined($o->{'max'}) || $o->{'max'} > $c->{'schema'}{'_analyze_max'}
56 0 37 12 $o->{'required'} ||= $c->{'schema'}{'required'}
57 0 49 0 $o->{'unknown'} ||= $c->{'schema'}{'unknown'}
59 49 0 0 not $o->{'type'} or $o->{'type'} eq 'any'
68 0 41 0 $c->{'analysis'} ||= _merge_toplevel($c, {})
78 11 24 0 $opt{'unknown'} ||= $o->{'unknown'}
153 0 0 0 $o->{'required'} or defined $o->{'default'}
0 0 0 $o->{'required'} or defined $o->{'default'} or $opt{'required'}
161 0 0 0 $opt{'values'} || $o->{'values'}->elm_type(%opt, '_need_parens', 1)
0 0 0 $opt{'values'} || $o->{'values'}
163 0 0 0 $o->{'keys'} || $opt{'keys'}
170 0 0 0 $opt{'keys'}{$_} || $o->{'keys'}{$_}->elm_type(%opt, 'level', $opt{'level'} + 1)
191 0 0 0 $opt{'values'} || $o->elm_encoder(%opt, 'required', 1)
0 0 0 $o->{'required'} or defined $o->{'default'}
0 0 0 $o->{'required'} or defined $o->{'default'} or $opt{'required'}
200 0 0 0 $opt{'values'} || $o->{'values'}->elm_encoder(%opt)
0 0 0 $opt{'values'} || $o->{'values'}
202 0 0 0 $o->{'keys'} || $opt{'keys'}
212 0 0 0 $opt{'keys'}{$_} || $o->{'keys'}{$_}->elm_encoder(%opt, 'level', $opt{'level'} + 1, 'var_num', $opt{'var_num'} + 1)