blib/lib/Data/Tubes/Plugin/Validator.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 24 | 26 | 92.3 |
line | true | false | branch |
---|---|---|---|
28 | 16 | 12 | defined $input ? : |
30 | 4 | 31 | ref $validator eq 'CODE' ? : |
34 | 14 | 21 | unless $outcome xor $refuse |
89 | 3 | 3 | if ($wrapper and $wrapper eq "try") |
90 | 0 | 3 | unless eval { |
109 | 13 | 0 | defined $input ? : |
114 | 23 | 16 | ref $validators->[$i] eq 'ARRAY' ? : |
116 | 3 | 3 | $target =~ /$validator/ ? : |
15 | 6 | ref $validator eq 'CODE' ? : | |
18 | 21 | $wrapper ? : | |
126 | 4 | 35 | unless @outcome |
127 | 21 | 18 | if not $outcome[0] or $keep_positives |
131 | 11 | 2 | if @outcomes or $keep_empty |