Branch Coverage

blib/lib/MooseX/App/Meta/Role/Attribute/Option.pm
Criterion Covered Total %
branch 71 112 63.3


line true false branch
94 0 151 if $type_constraint and $type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')
98 0 151 if ($self->cmd_type eq 'parameter')
99 0 0 if ($self->cmd_count)
102 0 0 if ($self->has_cmd_negate)
105 0 0 if ($self->has_cmd_negate)
108 0 0 if (defined $type_constraint and $type_constraint->is_a_type_of('Bool'))
112 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 0 0 if ($self->has_cmd_negate and !$type_constraint || $type_constraint->is_a_type_of('Bool'))
125 151 0 if (defined $type_constraint)
126 0 151 if ($self->cmd_count and not $type_constraint->is_a_type_of('Num'))
130 0 151 if ($self->has_cmd_split and not $from_constraint && $from_constraint->is_a_type_of('ArrayRef') || $type_constraint->is_a_type_of('ArrayRef'))
141 0 151 if (scalar &uniq(@names) != scalar @names)
154 1 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')) { }
158 0 0 if ($from->is_a_type_of('ArrayRef')) { }
0 0 elsif ($from->is_a_type_of('HashRef')) { }
165 4 0 $singular ? :
167 1 0 $singular ? :
169 0 0 $singular ? :
174 0 0 if ($type_constraint->has_parent)
185 0 114 unless $self->has_type_constraint
188 6 108 if ($type_constraint->has_coercion)
193 7 107 unless ($type_constraint->check($value))
194 0 7 if (ref $value eq 'ARRAY') { }
0 7 elsif (ref $value eq 'HASH') { }
201 1 6 if ($type_constraint->has_message) { }
206 6 0 if (defined $message_human) { }
220 93 102 $self->has_documentation ? :
222 145 50 if (scalar @tags)
223 76 69 if $description
233 42 209 if ($self->cmd_type eq 'parameter') { }
237 90 250 length $_ == 1 ? :
246 326 811 if ($self->has_cmd_flag) { }
258 259 779 if ($self->has_cmd_aliases)
268 0 691 if ($self->cmd_type eq 'parameter')
275 12 679 if ($self->has_cmd_negate)
287 25 3 if ($self->is_required and not $self->is_lazy_build and not $self->has_default)
293 1 197 if ($self->has_default and not $self->is_default_a_coderef)
294 1 0 if ($self->has_type_constraint and $self->type_constraint->is_a_type_of('Bool')) { }
306 5 193 if ($self->has_cmd_split)
308 5 0 if (ref $split eq 'Regexp')
315 183 15 if ($self->has_type_constraint)
317 10 173 if ($type_constraint->is_a_type_of('ArrayRef')) { }
5 168 elsif ($type_constraint->is_a_type_of('HashRef')) { }
318 5 5 unless ($self->has_cmd_split)
324 166 17 unless ($self->should_coerce)
325 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')) { }
337 14 184 if ($self->can('has_cmd_env') and $self->has_cmd_env)
342 29 169 if ($self->can('cmd_tags') and $self->can('cmd_tags') and $self->has_cmd_tags)