line |
true |
false |
branch |
94
|
0 |
201 |
if $type_constraint and $type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')
|
100
|
0 |
201 |
if ($self->cmd_type eq 'parameter') { }
|
101
|
0 |
0 |
if ($self->cmd_count)
|
104
|
0 |
0 |
if ($self->has_cmd_negate)
|
107
|
0 |
0 |
if ($self->has_cmd_negate)
|
110
|
0 |
0 |
if (defined $type_constraint and $type_constraint->is_a_type_of('Bool'))
|
114
|
0 |
0 |
if ($from_constraint and $from_constraint->is_a_type_of('Ref') or $type_constraint and $type_constraint->is_a_type_of('Ref'))
|
119
|
1 |
200 |
if (not $type_constraint && $type_constraint->is_a_type_of('Bool') and &first(sub {
|
125
|
0 |
200 |
if ($self->has_cmd_negate and not $type_constraint && $type_constraint->is_a_type_of('Bool'))
|
132
|
177 |
23 |
if (defined $type_constraint)
|
133
|
0 |
177 |
if ($self->cmd_count and not $type_constraint->is_a_type_of('Num'))
|
137
|
0 |
177 |
if ($self->has_cmd_split and not $from_constraint && $from_constraint->is_a_type_of('ArrayRef') || $type_constraint->is_a_type_of('ArrayRef'))
|
148
|
0 |
200 |
if (scalar &uniq(@names) != scalar @names)
|
161
|
0 |
5 |
if ($type_constraint->isa('Moose::Meta::TypeConstraint::Enum')) { }
|
|
0 |
5 |
elsif ($type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')) { }
|
|
4 |
1 |
elsif ($type_constraint->equals('Int')) { }
|
|
1 |
0 |
elsif ($type_constraint->equals('Num')) { }
|
|
0 |
0 |
elsif ($type_constraint->equals('Str')) { }
|
|
0 |
0 |
elsif ($type_constraint->equals('HashRef')) { }
|
165
|
0 |
0 |
if ($from->is_a_type_of('ArrayRef')) { }
|
|
0 |
0 |
elsif ($from->is_a_type_of('HashRef')) { }
|
172
|
4 |
0 |
$singular ? :
|
174
|
1 |
0 |
$singular ? :
|
176
|
0 |
0 |
$singular ? :
|
181
|
0 |
0 |
if ($type_constraint->has_parent)
|
192
|
0 |
110 |
unless $self->has_type_constraint
|
195
|
2 |
108 |
if ($type_constraint->has_coercion)
|
200
|
7 |
103 |
unless ($type_constraint->check($value))
|
201
|
0 |
7 |
if (ref $value eq 'ARRAY') { }
|
|
0 |
7 |
elsif (ref $value eq 'HASH') { }
|
208
|
2 |
5 |
if ($type_constraint->has_message) { }
|
213
|
5 |
0 |
if (defined $message_human) { }
|
227
|
93 |
102 |
$self->has_documentation ? :
|
229
|
145 |
50 |
if (scalar @tags)
|
230
|
76 |
69 |
if $description
|
240
|
42 |
209 |
if ($self->cmd_type eq 'parameter') { }
|
244
|
90 |
250 |
length $_ == 1 ? :
|
253
|
339 |
903 |
if ($self->has_cmd_flag) { }
|
265
|
273 |
870 |
if ($self->has_cmd_aliases)
|
275
|
0 |
740 |
if ($self->cmd_type eq 'parameter')
|
282
|
18 |
722 |
if ($self->has_cmd_negate)
|
294
|
25 |
3 |
if ($self->is_required and not $self->is_lazy_build and not $self->has_default)
|
300
|
1 |
197 |
if ($self->has_default and not $self->is_default_a_coderef)
|
301
|
1 |
0 |
if ($self->has_type_constraint and $self->type_constraint->is_a_type_of('Bool')) { }
|
313
|
5 |
193 |
if ($self->has_cmd_split)
|
315
|
5 |
0 |
if (ref $split eq 'Regexp')
|
322
|
171 |
27 |
if ($self->has_type_constraint)
|
324
|
10 |
161 |
if ($type_constraint->is_a_type_of('ArrayRef')) { }
|
|
5 |
156 |
elsif ($type_constraint->is_a_type_of('HashRef')) { }
|
325
|
5 |
5 |
unless ($self->has_cmd_split)
|
331
|
166 |
5 |
unless ($self->should_coerce)
|
332
|
39 |
127 |
if ($type_constraint->is_a_type_of('Int')) { }
|
|
5 |
122 |
elsif ($type_constraint->is_a_type_of('Num')) { }
|
|
60 |
62 |
elsif ($type_constraint->is_a_type_of('Bool')) { }
|
|
9 |
53 |
elsif ($type_constraint->isa('Moose::Meta::TypeConstraint::Enum')) { }
|
344
|
14 |
184 |
if ($self->can('has_cmd_env') and $self->has_cmd_env)
|
349
|
29 |
169 |
if ($self->can('cmd_tags') and $self->can('cmd_tags') and $self->has_cmd_tags)
|