Condition Coverage

blib/lib/Class/MOP/Attribute.pm
Criterion Covered Total %
condition 32 35 91.4


and 3 conditions

line !l l&&!r l&&r condition
54 37511 8189 12161 exists $options{'default'} and ref $options{'default'}
57 56108 2220 1 $options{'required'} and not defined $options{'builder'} || defined $options{'init_arg'} || exists $options{'default'}
127 11290 62966 92556 defined $init_arg and exists $params->{$init_arg}
206 12 2 107 my $reader = $self->get_read_method and $self->associated_class
226 26 2 83 my $writer = $self->get_write_method and $self->associated_class
252 3 1 58313 &blessed($class) and $class->isa("Class::MOP::Class")
402 41141 0 37723 $generate_as_inline_methods && $self->associated_class->instance_metaclass->is_inlinable

or 2 conditions

line l !l condition
54 12153 8 $class->is_default_a_coderef(\%options) or $class->_throw_exception("ReferencesAreNotAllowedAsDefault", "class", $class, "params", \%options, "attribute_name", $options{'name'})

or 3 conditions

line l !l&&r !l&&!r condition
43 6 0 478 ref $options{'builder'} or not defined $options{'builder'}
57 2220 0 1 defined $options{'builder'} || defined $options{'init_arg'} || exists $options{'default'}
186 118 114 14 $self->reader || $self->accessor
196 5 86 30 $self->writer || $self->accessor