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 36529 7972 11833 exists $options{'default'} and ref $options{'default'}
57 54618 2181 1 $options{'required'} and not defined $options{'builder'} || defined $options{'init_arg'} || exists $options{'default'}
127 11035 61566 90612 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 56784 &blessed($class) and $class->isa("Class::MOP::Class")
402 40048 0 36667 $generate_as_inline_methods && $self->associated_class->instance_metaclass->is_inlinable

or 2 conditions

line l !l condition
54 11825 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 476 ref $options{'builder'} or not defined $options{'builder'}
57 2181 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