line |
true |
false |
branch |
34
|
115 |
45 |
$args{'type'} =~ /^require(s|d)$/ ? : |
36
|
1 |
159 |
unless $self->_parse($args{'spec'}) |
46
|
8 |
152 |
if ($spec->{'in'}) |
47
|
1 |
7 |
unless $self->in($spec->{'in'}) |
50
|
30 |
129 |
if ($spec->{'encloses'}) |
51
|
28 |
2 |
if ($self->type->name eq 'HashRef') { } |
62
|
0 |
159 |
defined $spec->{'coerce'} ? : |
73
|
28 |
56 |
unless $type |
90
|
8 |
50 |
if (defined $value) |
91
|
1 |
7 |
unless (grep {$value eq $_;} @LOCATIONS) |
108
|
3 |
125 |
if ($self->required and not defined $$ref_value) |
109
|
3 |
0 |
unless $quiet |
114
|
21 |
23 |
unless ($self->required or defined $$ref_value) |
121
|
1 |
103 |
if ($self->type->has_coercion and $self->coerce) |
125
|
0 |
104 |
if ($self->type->isa('Moose::Meta::TypeConstraint')) { } |
132
|
6 |
98 |
if (my $e = $@) |
133
|
5 |
1 |
unless ($quiet) |
141
|
11 |
87 |
if ($self->type->name eq 'HashRef' and $self->enclosed) { } |
|
3 |
163 |
elsif ($self->regex and not $$ref_value =~ $self->regex) { } |
145
|
19 |
0 |
if ($self->type->name eq "HashRef") |
149
|
4 |
15 |
unless $p->validate(\$v, $quiet) |
154
|
3 |
0 |
unless ($quiet) |