Branch Coverage

lib/Mojolicious/Plugin/Vparam/Filters.pm
Criterion Covered Total %
branch 55 76 72.3


line true false branch
7 0 24 unless defined $_[0]
8 9 15 unless $_[0] =~ /$_[1]/
15 0 11 unless 'ARRAY' eq ref $list
17 1 10 unless defined $str
19 28 0 if defined $_
5 5 unless &any(sub { $str eq $_ if defined $_; } , @$list)
26 2 10 unless defined $value
27 1 9 unless length $value
28 1 8 unless $min <= length $value
30 2 6 unless $max >= length $value
37 0 11 if $e
40 4 7 if $numeric
42 3 4 unless $_[0] >= $_[1]
49 0 7 if $e
52 1 6 if $numeric
54 4 2 unless $_[0] <= $_[1]
61 0 3 if $e
64 1 2 if $numeric
66 1 1 unless $_[0] == $_[1]
72 0 3 if $e
75 1 2 if $numeric
77 1 1 unless $_[0] != $_[1]
83 2 3 if $min
86 2 1 if $max
92 0 1 unless defined $_[0]
93 0 1 unless $_[0] lt $_[1]
99 0 1 unless defined $_[0]
100 0 1 unless $_[0] gt $_[1]
106 0 1 unless defined $_[0]
107 0 1 unless $_[0] le $_[1]
113 0 1 unless defined $_[0]
114 0 1 unless $_[0] ge $_[1]
120 0 1 unless defined $_[0]
121 0 1 if $_[0] cmp $_[1]
126 0 1 unless defined $_[0]
127 0 1 unless $_[0] eq $_[1]
132 0 1 unless defined $_[0]
133 0 1 unless $_[0] ne $_[1]