| blib/lib/Form/Tiny/Form.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 22 | 26 | 84.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 125 | 2 | 0 | 160 | $self->_ft_mangle_field($validator, \$path_value->[1]) && $all_ok |
| 154 | 0 | 15 | 6 | $raise and not defined $def |
| 170 | 319 | 21 | 0 | $hooks{'reformat'} && try(sub { $fields = $hooks{'reformat'}->($self, $fields); } ) |
| 0 | 9 | 331 | not $hooks{'reformat'} && try(sub { $fields = $hooks{'reformat'}->($self, $fields); } ) and ref $fields eq "HASH" | |
| 191 | 235 | 46 | 58 | $hooks{'cleanup'} and not $self->has_errors |
| 227 | 103 | 49 | 4 | not $error->has_field_def and $error->has_field |
| line | l | !l | condition |
|---|---|---|---|
| 66 | 307 | 18 | $current // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 66 | 39 | 294 | 31 | ref $current or length($current // "") |
| 333 | 25 | 6 | ref $current or length($current // "") or not $def->hard_required |