Condition Coverage

lib/Mojolicious/Plugin/InputValidation.pm
Criterion Covered Total %
condition 74 172 43.0


and 3 conditions

line !l l&&!r l&&r condition
14 6 0 0 $self->nillable and not defined $value
6 0 0 $self->empty and defined $value
6 0 0 $self->empty and defined $value and not ref $value
0 0 0 $self->empty and defined $value and not ref $value and $value eq ''
0 6 0 defined $value and not $self->pattern
0 3 3 $self->pattern and $value =~ $self->pattern
28 6 0 0 $self->nillable and not defined $value
6 0 0 $self->empty and defined $value
6 0 0 $self->empty and defined $value and not ref $value
0 0 0 $self->empty and defined $value and not ref $value and $value eq ''
41 4 0 0 $self->nillable and not defined $value
4 0 0 $self->empty and defined $value
4 0 0 $self->empty and defined $value and not ref $value
0 0 0 $self->empty and defined $value and not ref $value and $value eq ''
54 11 0 0 $self->nillable and not defined $value
11 0 0 $self->empty and defined $value
11 0 0 $self->empty and defined $value and not ref $value
0 0 0 $self->empty and defined $value and not ref $value and $value eq ''
67 7 0 3 $self->nillable and not defined $value
3 1 3 $self->empty and defined $value
4 2 1 $self->empty and defined $value and not ref $value
3 0 1 $self->empty and defined $value and not ref $value and $value eq ''
97 4 0 0 $self->nillable and not defined $value
106 3 1 0 defined $self->{'max'} and $elems > $self->{'max'}
112 4 0 0 defined $self->{'min'} and $elems < $self->{'min'}
118 0 0 1 $self->{'pattern'} and not $self->{'min'}
0 0 1 $self->{'pattern'} and not $self->{'min'} and not $self->{'min'}
167 40 0 0 $self->nillable and not defined $value
213 3 0 0 $self->nillable and not defined $value
3 0 0 $self->empty and defined $value
3 0 0 $self->empty and defined $value and not ref $value
0 0 0 $self->empty and defined $value and not ref $value and $value eq ''

or 2 conditions

line l !l condition
19 3 0 $path || '/'
32 2 0 $path || '/'
45 2 0 $path || '/'
58 2 0 $path || '/'
72 2 0 $path || '/'
100 0 0 $path || '/'
108 0 0 $path || '/'
114 0 0 $path || '/'
139 0 0 $path // '/'
170 0 0 $path || '/'
182 0 1 $path || '/'
187 0 1 $path || '/'
217 1 0 $path || '/'
280 58 26 $path // ''

or 3 conditions

line l !l&&r !l&&!r condition
14 0 0 6 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq ''
0 0 6 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq '' or defined $value and not $self->pattern
0 3 3 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq '' or defined $value and not $self->pattern or $self->pattern and $value =~ $self->pattern
28 0 0 6 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq ''
0 4 2 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq '' or $value =~ /^\w+$/
41 0 0 4 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq ''
0 2 2 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq '' or $value =~ /^-?\d+\.\d+$/
54 0 0 11 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq ''
0 9 2 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq '' or $value =~ /^-?\d+$/
67 3 1 6 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq ''
1 4 2 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq '' or ref($value) =~ /^JSON::PP::Boolean$/
71 0 1 1 ref $value || $value
119 5 3 0 $self->{'max'} // $elems
179 53 2 2 $have_keys{$_} || $self->{'pattern'}{$_}->optional
213 0 0 3 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq ''
0 2 1 $self->nillable and not defined $value or $self->empty and defined $value and not ref $value and $value eq '' or $value =~ $self->pattern