Condition Coverage

lib/Mojolicious/Plugin/InputValidation.pm
Criterion Covered Total %
condition 55 149 36.9


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 ''
83 4 0 0 $self->nillable and not defined $value
92 3 1 0 defined $self->{'max'} and $elems > $self->{'max'}
98 4 0 0 defined $self->{'min'} and $elems < $self->{'min'}
104 0 0 1 $self->{'pattern'} and not $self->{'min'}
0 0 1 $self->{'pattern'} and not $self->{'min'} and not $self->{'min'}
153 36 0 0 $self->nillable and not defined $value
199 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 || '/'
86 0 0 $path || '/'
94 0 0 $path || '/'
100 0 0 $path || '/'
125 0 0 $path // '/'
156 0 0 $path || '/'
168 0 1 $path || '/'
173 0 1 $path || '/'
203 1 0 $path || '/'
264 48 22 $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+$/
105 5 3 0 $self->{'max'} // $elems
165 41 2 2 $have_keys{$_} || $self->{'pattern'}{$_}->optional
199 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