Condition Coverage

blib/lib/Mite/Attribute.pm
Criterion Covered Total %
condition 97 180 53.8


and 3 conditions

line !l l&&!r l&&r condition
236 166 6 0 $self->required and not defined $self->init_arg
249 163 9 0 $self->has_builder and $self->has_default
261 1377 127 44 defined $name and $name eq Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.26.1/B/Deparse.pm line 5018.
419 1 1 0 &blessed($type) and not $type->isa("Type::Tiny")
464 2 0 0 not $values and my $type = $self->type
527 0 45 0 $self->compiling_class and $self->compiling_class->imported_functions->{'blessed'}
554 0 0 15 $self->coerce and my $type = $self->type
580 0 34 3 $self->has_simple_default and $self->type
34 3 0 $self->has_simple_default and $self->type and $self->type == &Bool()
642 2 1 0 $self->has_default || $self->has_builder and not $self->lazy
662 50 15 61 $self->has_default || $self->has_builder and not $self->lazy
59 0 6 $self->required and not $self->lazy
663 60 0 1 $self->default_is_trusted and my $type = $self->type
691 60 0 1 $self->default_does_trigger && !$self->lazy && ($self->has_default || $self->has_builder)
720 1 107 18 $needs_check and my $type = $self->type
1045 1 0 3 $gen->coerce and $type->{'uniq'} == &Bool()->{'uniq'}
1048 1 0 0 $gen->coerce and $type->has_coercion
1160 110 3 6 $self->has_handles and not $self->has_handles_via
113 2 4 $self->has_handles and not $self->has_handles_via and ref $self->handles
1209 0 117 2 $self->alias and my $alias_is_for = $self->alias_is_for
1240 28 0 224 $context{'context'} and $context{'file'}
0 0 224 $context{'context'} and $context{'file'} and $context{'line'}
1282 0 0 0 $type->name and $type->library
0 0 0 $type->isa("Type::Tiny::Union") and &List::Util::all(sub {
0 0 0 $type->is_parameterized and 1 == @{$type->parameters;}
0 0 0 $type->is_parameterized and 1 == @{$type->parameters;} and $type->parent->name
0 0 0 $type->is_parameterized and 1 == @{$type->parameters;} and $type->parent->name and $type->parent->library
0 0 0 $type->is_parameterized and 1 == @{$type->parameters;} and $type->parent->name and $type->parent->library and $type->type_parameter->name
0 0 0 $type->is_parameterized and 1 == @{$type->parameters;} and $type->parent->name and $type->parent->library and $type->type_parameter->name and $type->type_parameter->library
1320 0 0 0 $type->has_coercion and $self->coerce

or 2 conditions

line l !l condition
195 2 0 eval {
202 1 0 eval {
1134 114 5 $args{'xs_condition'} || '!$ENV{PERL_ONLY} && eval { require Class::XSAccessor; Class::XSAccessor->VERSION("1.19") }'
1196 1 84 $code_attr{$method_type} || ''
1204 0 53 $code_attr{$method_type} || ''
1264 0 0 $translate{$self->is} || 'bare'

or 3 conditions

line l !l&&r !l&&!r condition
241 3 0 1 $self->has_builder or $self->has_default
276 2 0 1 $self->type or $self->coerce
308 0 0 7 $args{'isa'} or $args{'type'}
316 0 4 3 exists $args{'builder'} or exists $args{'default'}
330 51 3 108 $self->is eq 'ro' || $self->is eq 'rwp'
508 1 3 37 &HashRef()->check($self->default) || &ArrayRef()->check($self->default)
540 0 45 0 $code //= do {
642 0 1 2 $self->has_default || $self->has_builder
662 68 8 50 $self->has_default || $self->has_builder
958 0 0 2 $self->lazy or $self->clone_on_read
962 0 0 0 $self->_expand_name($self->reader) // $self->_expand_name($self->accessor)
0 0 0 ($self->_expand_name($self->reader) // $self->_expand_name($self->accessor)) // $self->_expand_name($self->lvalue)
0 0 0 (($self->_expand_name($self->reader) // $self->_expand_name($self->accessor)) // $self->_expand_name($self->lvalue)) // do {
986 1 1 1 $self->reader // $self->accessor
2 0 1 ($self->reader // $self->accessor) // $self->lvalue
989 0 1 2 $self->writer // $self->accessor
1055 3 0 0 $self->compiling_class || $self->class
0 0 3 $self->clone_on_read || $self->clone_on_write || $self->trigger
1166 19 1 99 $self->type or $self->weak_ref
20 0 99 $self->type or $self->weak_ref or $self->locked
1 5 94 $self->type or $self->weak_ref or $self->locked or $self->trigger
5 5 89 $self->type or $self->weak_ref or $self->locked or $self->trigger or $self->clone_on_write
1172 16 5 98 $self->lazy or $self->clone_on_read
1178 81 34 4 keys %want_xs or keys %want_pp
1454 0 0 0 $self->has_inline_default or $self->has_reference_default
1466 0 0 0 $self->has_default or $self->has_builder