Condition Coverage

blib/lib/Struct/Conditional.pm
Criterion Covered Total %
condition 42 68 61.7


and 3 conditions

line !l l&&!r l&&r condition
12 0 15 0 defined $struct and not ref $struct
15 0 0 defined $struct and not ref $struct and $struct eq 'compiled_null'
29 2 79 0 $value && $value eq 'compiled_null'
39 0 21 0 $value && $value eq 'compiled_null'
158 0 4 52 not $success and defined $keyword->{'m'}
160 21 35 0 not $success and defined $keyword->{'im'}
162 21 35 0 not $success and defined $keyword->{'nm'}
164 21 35 0 not $success and defined $keyword->{'inm'}
166 21 34 1 not $success and defined $keyword->{'eq'}
168 22 31 3 not $success and defined $keyword->{'ne'}
170 23 33 0 not $success and defined $keyword->{'gt'}
173 23 33 0 not $success and defined $keyword->{'lt'}
174 54 0 2 $keyword->{'or'} and not $success
178 54 0 2 $keyword->{'and'} and $success
182 54 0 2 $keyword->{'elsif'} and not $success
187 56 0 0 $keyword->{'else'} and not $success
195 6 113 10 defined $then and $then =~ /\{($params_reg)\}/

or 2 conditions

line l !l condition
6 0 15 $_[1] || {}
60 5 0 ref $params->{$key} || ''
71 2 0 ref $params->{$key} || ''
194 55 129 ref $then || ''

or 3 conditions

line l !l&&r !l&&!r condition
122 0 4 0 $_->{'key'} ||= $keywords{'given'}{'key'}
127 0 2 0 $default ||= delete $keywords{'given'}{'when'}{'default'}
193 90 94 0 $params_reg ||= join('|', keys %{$params;})