Condition Coverage

blib/lib/Zydeco.pm
Criterion Covered Total %
condition 98 161 60.8


and 3 conditions

line !l l&&!r l&&r condition
868 32 5 2 $seen_named and $seen_pos
869 0 2 4 @parsed and $parsed[0]{'positional'}
872 0 2 2 @parsed and $parsed[-1]{'positional'}
1069 1 2 0 defined $code and $code =~ /^=(.+)$/su
1119 0 32 0 defined $code and $code =~ /^=(.+)$/su
1125 1 30 1 defined $name and $name =~ /^\$(.+)$/u
1141 1 1 30 defined $name and not defined $lex_name
1222 0 8 4 defined $code and $code =~ /^=(.+)$/su
1283 0 2 1 defined $code and $code =~ /^=(.+)$/su
1377 5 79 8 $name and $has_sig
1441 27 6 0 defined $default and $default =~ /\$\s*(?:self|class|factory)/u
1547 119 0 0 $owed and $owed > $diff
1605 0 0 1 $types->can('get_type') && $types->get_type($name)
2165 1 0 0 @_ == 1 and ref $_[0] eq 'HASH'
1 0 0 @_ == 1 and ref $_[0] eq 'ARRAY'

or 2 conditions

line l !l condition
71 37 50 $gather{$me}{$caller}{$kind} ||= []
89 0 1 $gather{$me}{$caller}{'class_generator'} ||= []
105 51 36 $stack{$me}{$caller} ||= []
140 13 8 $class_hash{$parent_key}{'subclass'} ||= []
158 0 2 $got->{'extends'} ||= [$extends]
746 213 44 $opts{'anchor'} ||= ''
1402 1 0 $opts->{'toolkit'} || 'Moo'
1421 4 0 $code ||= '{}'
1430 4 0 $opts->{'toolkit'} || 'Moo'
1540 92 120 $pad_at_end ||= 0
1709 1 74 $plus ||= ''
1710 51 24 $block ||= '{}'
1731 0 1 $plus ||= ''
1732 0 1 $block ||= '{}'
1754 16 0 $block ||= '{}'
2047 1 0 $via ||= 'new'
2172 0 1 $_->{'overload'} ||= []
2203 0 13 $_->{'extends'} ||= []
2225 0 1 $_->{'begin'} ||= []
2240 0 1 $_->{'end'} ||= []
2255 0 2 $_->{'before_apply'} ||= []
2271 0 2 $_->{'after_apply'} ||= []
2297 0 17 $_->{'with'} ||= []
2307 0 0 $_->{'import'} ||= []
2316 1 2 $_->{'requires'} ||= []
2324 0 1 $_->{'coerce'} ||= []
2332 1 2 $_->{'factory'} ||= []
2370 2 5 $_->{'symmethod'} ||= []
2378 1 1 $_->{'multifactory'} ||= []
2382 2 8 $_->{'multimethod'} ||= []
2389 0 5 $_->{$kind} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
44 9 25 49 $opts{'extends'} // $opts{'_stack'}[-1]
48 0 4 0 $opts{'class_type_name'} || sprintf('%sClass', 'MooX::Press'->type_name($qname, $opts{'prefix'}))
50 0 4 0 $opts{'instance_type_name'} || sprintf('%sInstance', 'MooX::Press'->type_name($qname, $opts{'prefix'}))
54 1 78 0 $opts{'type_name'} || 'MooX::Press'->type_name($qname, $opts{'prefix'})
748 114 143 0 $_fetch_re_cache{$key} ||= do {
881 0 0 6 $is_optional ||= $p->{'type'} =~ /^Optional/su
929 5 2 49 exists $p->{'optional'} or exists $p->{'default'}
2 3 46 exists $p->{'optional'} or exists $p->{'default'} or $p->{'slurpy'}
941 2 0 37 @head or @tail
1071 0 0 0 $optim ||= &$_should_optimize($code, $signature_var_list)
1121 0 0 0 $optim ||= &$_should_optimize($code, $signature_var_list)
1224 0 4 0 $optim ||= &$_should_optimize($code, $signature_var_list)
1285 0 1 0 $optim ||= &$_should_optimize($code, $signature_var_list)
1604 1 0 0 not $cached or $cached->isa('Type::Tiny::_DeclaredType')
1607 1 0 0 $cached ||= 'Type::Tiny::_DeclaredType'->new('name', $name, 'library', $types)
1628 0 38 0 $opts{'caller'} ||= caller
2112 2 7 0 is_Str($TARGET) or is_Str($fallback)
2126 2 7 0 $TARGET || $fallback