Condition Coverage

blib/lib/Class/MakeMethods/Template.pm
Criterion Covered Total %
condition 43 74 58.1


and 3 conditions

line !l l&&!r l&&r condition
31 1 8 739 scalar @results == 1 and ref $results[0] eq 'HASH'
159 0 0 458 defined $m_name and length $m_name
165 0 0 2 scalar @_ and ref $_[0] eq 'HASH'
0 2 0 scalar @_ and ref $_[0] eq 'HASH' and not exists $_[0]{'name'}
208 181 106 10 scalar @_ and ref $_[0] eq 'HASH'
287 2 8 scalar @_ and ref $_[0] eq 'HASH' and not exists $_[0]{'name'}
215 0 0 28 exists $$m_name{'name'} and length $$m_name{'name'}
245 318 0 7 $$m_info{'modifier'} and $$mm_def{'modifier'}{-'folding'}
265 6 0 0 $behavior =~ /^\-/ and $$mm_def{'modifier'}{-'folding'}
293 0 0 29 scalar @results == 1 and ref $results[0] eq 'HASH'
379 0 0 167 defined $interface && length $interface
418 0 0 707 defined $$interface{$_} and length $$interface{$_}
476 141 38 9 scalar @_ == 1 && ref $_[0] eq 'HASH'

or 2 conditions

line l !l condition
143 210 0 $$mm_def{'params'} ||= {}
144 0 210 $$mm_def{'interface'}{'-default'} || 'default'
243 65 220 $1 or 'name'
340 0 0 delete $$m_info{'--'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
55 2879 2180 0 ref $target eq 'HASH' or ref $target eq 'Class::MakeMethods::Template'
76 445 969 2281 $$mm_def{$importer}{'-import'} || $$mm_def{'-import'}
144 0 210 0 $$defaults{'interface'} ||= $$mm_def{'interface'}{'-default'} || 'default'
227 2 323 0 $$m_info{'interface'} or $$defaults{'interface'}
2 213 0 $$m_info{'interface'} || $$defaults{'interface'}
110 215 0 $interface_cache{$$m_info{'interface'} or $$defaults{'interface'}} ||= _interpret_interface($mm_def, $$m_info{'interface'} || $$defaults{'interface'})
360 0 0 0 $interface_cache{$$m_info{'interface'}} ||= _interpret_interface($mm_def, $$m_info{'interface'})
476 54 96 15 ref $self || $self
504 14 0 840 $$mm_def{'modifier'}{"$_ $name"} || $$mm_def{'modifier'}{"$_ *"}