| blib/lib/Poz/Types/union.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 16 | 87.5 |
| line | true | false | branch |
|---|---|---|---|
| 12 | 0 | 12 | unless ($validator->isa("Poz::Types")) |
| 28 | 7 | 19 | if ($errors) |
| 36 | 0 | 26 | unless wantarray |
| 40 | 2 | 24 | if (defined $self->{'__default__'} and not defined $data) |
| 43 | 4 | 22 | if (not defined $data) { } |
| 44 | 1 | 3 | if ($self->{'__optional__'}) { } |
| 2 | 1 | elsif (grep {ref $_ eq 'Poz::Types::null';} @{$$self{'__validators__'};}) { } | |
| 54 | 16 | 19 | unless ($e) |