Condition Coverage

blib/lib/Mite/Attribute.pm
Criterion Covered Total %
condition 89 173 51.4


and 3 conditions

line !l l&&!r l&&r condition
217 155 6 0 $self->required and not defined $self->init_arg
226 152 9 0 $self->has_builder and $self->has_default
238 1290 120 39 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.
396 1 1 0 &blessed($type) and not $type->isa("Type::Tiny")
441 2 0 0 not $values and my $type = $self->type
504 0 43 0 $self->compiling_class and $self->compiling_class->imported_functions->{'blessed'}
531 0 0 15 $self->coerce and my $type = $self->type
557 0 32 3 $self->has_simple_default and $self->type
32 3 0 $self->has_simple_default and $self->type and $self->type == &Bool()
619 2 1 0 $self->has_default || $self->has_builder and not $self->lazy
639 51 15 61 $self->has_default || $self->has_builder and not $self->lazy
60 0 6 $self->required and not $self->lazy
640 60 0 1 $self->default_is_trusted and my $type = $self->type
668 60 0 1 $self->default_does_trigger && !$self->lazy && ($self->has_default || $self->has_builder)
697 1 109 17 $needs_check and my $type = $self->type
999 0 0 3 $gen->coerce and $type->{'uniq'} == &Bool()->{'uniq'}
1002 0 0 0 $gen->coerce and $type->has_coercion
1113 112 2 6 $self->has_handles and not $self->has_handles_via
114 2 4 $self->has_handles and not $self->has_handles_via and ref $self->handles
1162 0 118 2 $self->alias and my $alias_is_for = $self->alias_is_for
1193 28 0 221 $context{'context'} and $context{'file'}
0 0 221 $context{'context'} and $context{'file'} and $context{'line'}
1235 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
1273 0 0 0 $type->has_coercion and $self->coerce

or 2 conditions

line l !l condition
1087 115 5 $args{'xs_condition'} || '!$ENV{PERL_ONLY} && eval { require Class::XSAccessor; Class::XSAccessor->VERSION("1.19") }'
1149 1 82 $code_attr{$method_type} || ''
1157 0 52 $code_attr{$method_type} || ''
1217 0 0 $translate{$self->is} || 'bare'

or 3 conditions

line l !l&&r !l&&!r condition
222 3 0 1 $self->has_builder or $self->has_default
253 1 0 1 $self->type or $self->coerce
285 0 0 8 $args{'isa'} or $args{'type'}
293 0 5 3 exists $args{'builder'} or exists $args{'default'}
307 50 3 97 $self->is eq 'ro' || $self->is eq 'rwp'
485 1 2 35 &HashRef()->check($self->default) || &ArrayRef()->check($self->default)
517 0 43 0 $code //= do {
619 0 1 2 $self->has_default || $self->has_builder
639 68 8 51 $self->has_default || $self->has_builder
922 0 0 2 $self->lazy or $self->clone_on_read
926 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 {
950 1 0 1 $self->reader // $self->accessor
1 0 1 ($self->reader // $self->accessor) // $self->lvalue
953 0 0 2 $self->writer // $self->accessor
1009 2 0 0 $self->compiling_class || $self->class
0 0 2 $self->clone_on_read || $self->clone_on_write || $self->trigger
1119 18 1 101 $self->type or $self->weak_ref
19 5 96 $self->type or $self->weak_ref or $self->trigger
6 5 91 $self->type or $self->weak_ref or $self->trigger or $self->clone_on_write
1125 16 5 99 $self->lazy or $self->clone_on_read
1131 79 33 8 keys %want_xs or keys %want_pp
1407 0 0 0 $self->has_inline_default or $self->has_reference_default
1419 0 0 0 $self->has_default or $self->has_builder