Condition Coverage

blib/lib/Mooish/AttributeBuilder.pm
Criterion Covered Total %
condition 21 28 75.0


and 3 conditions

line !l l&&!r l&&r condition
12 0 0 15 eval { do { require Sub::Util } } and "Sub::Util"->VERSION >= "1.4"
126 0 0 50 $type and $self->attribute_types->{$type}
171 43 7 0 $args{'required'} and exists $args{'default'} || $args{'builder'}
210 47 0 2 $args{'trigger'} and not ref $args{'trigger'}

or 2 conditions

line l !l condition
81 1 16 $flags{'-standard'} || ''
86 8 61 $$export_cache{$cache_key . $type} //= sub { my($name, %args) = @_; return $self->expand_shortcuts($flags{"-standard"}, $type, $name, %args); }

or 3 conditions

line l !l&&r !l&&!r condition
171 1 0 6 exists $args{'default'} || $args{'builder'}
193 1 30 1 $normalized_name //= get_normalized_name($name, $method_type)
194 1 5 25 $hidden_field //= $name ne $normalized_name
200 7 7 17 $args{$method_type} eq '-hidden' || $args{$method_type} eq '1' && ($hidden_field || $self->hidden_methods->{$method_type})