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"
33 2 79 0 $value && $value eq 'compiled_null'
43 0 21 0 $value && $value eq 'compiled_null'
162 0 4 52 not $success and defined $keyword->{'m'}
164 21 35 0 not $success and defined $keyword->{'im'}
166 21 35 0 not $success and defined $keyword->{'nm'}
168 21 35 0 not $success and defined $keyword->{'inm'}
170 21 34 1 not $success and defined $keyword->{'eq'}
172 22 31 3 not $success and defined $keyword->{'ne'}
174 23 33 0 not $success and defined $keyword->{'gt'}
177 23 33 0 not $success and defined $keyword->{'lt'}
178 54 0 2 $keyword->{'or'} and not $success
182 54 0 2 $keyword->{'and'} and $success
186 54 0 2 $keyword->{'elsif'} and not $success
191 56 0 0 $keyword->{'else'} and not $success
199 6 113 10 defined $then and $then =~ /\{($params_reg)\}/

or 2 conditions

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

or 3 conditions

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