| blib/lib/Data/Rx/Type/Perl/Code.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 10 | 12 | 83.3 |
| line | true | false | branch |
|---|---|---|---|
| 21 | 3 | 0 | if $key eq 'prototype' |
| 27 | 1 | 2 | !defined($$arg{'prototype'}) ? : |
| 2 | 3 | !exists($$arg{'prototype'}) ? : | |
| 45 | 5 | 13 | unless (ref $value) |
| 54 | 0 | 13 | unless (&Scalar::Util::reftype($value) eq 'CODE') |
| 62 | 6 | 7 | if (defined $$self{'prototype_schema'} and not $$self{'prototype_schema'}->check(prototype $value)) |