| blib/lib/Form/Tiny/Form.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 21 | 25 | 84.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 135 | 2 | 0 | 152 | $self->_ft_mangle_field($validator, $path_value) && $all_ok |
| 171 | 0 | 110 | 6 | $raise and not defined $def |
| 187 | 301 | 21 | 0 | $hooks{'reformat'} && try(sub { $fields = $hooks{'reformat'}->($self, $fields); } ) |
| 0 | 9 | 313 | not $hooks{'reformat'} && try(sub { $fields = $hooks{'reformat'}->($self, $fields); } ) and ref $fields eq "HASH" | |
| 208 | 224 | 40 | 58 | $hooks{'cleanup'} and not $self->has_errors |
| line | l | !l | condition |
|---|---|---|---|
| 66 | 303 | 18 | $current // "" |
| 276 | 3 | 3 | $error->field // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 66 | 29 | 290 | 31 | ref $current or length($current // "") |
| 319 | 25 | 6 | ref $current or length($current // "") or not $def->hard_required |