Condition Coverage

blib/lib/Method/Generate/Constructor.pm
Criterion Covered Total %
condition 24 30 80.0


and 3 conditions

line !l l&&!r l&&r condition
29 1732 54 2 $new_spec->{'required'} and not $ag->has_default($name, $new_spec) || !exists $new_spec->{'init_arg'} || defined $new_spec->{'init_arg'}
138 30 454 24 $into_buildargs && $into_buildargs != \&Moo::Object::BUILDARGS

or 2 conditions

line l !l condition
21 802 656 $self->{'attribute_specs'} ||= {}
86 6 0 $found_new || ''
6 0 $expected_new || ''
87 4 0 $found_new ||= "none"
88 4 0 $expected_new ||= "none"
161 508 0 $quote_opts || {}

or 3 conditions

line l !l&&r !l&&!r condition
29 42 12 2 $ag->has_default($name, $new_spec) || !exists $new_spec->{'init_arg'} || defined $new_spec->{'init_arg'}
57 120 466 0 $self->{'construction_string'} ||= $self->_build_construction_string
214 1552 6 12 defined $attr_spec->{'init_arg'} or $ag->has_eager_default($name, $attr_spec)
236 4 4 46 $s->{'builder'} || exists $s->{'default'}