Condition Coverage

lib/Perl/PrereqScanner/NotQuiteLite/Parser/Core.pm
Criterion Covered Total %
condition 46 73 63.0


and 3 conditions

line !l l&&!r l&&r condition
87 5 0 4 ref $module and $module->[1] eq 'WORD' || $module->[1] eq 'KEYWORD'
111 27 30 2 ref $module and ($module->[1] || '') eq "WORD"
114 0 0 2 @$tokens and ref $tokens->[0]
0 1 1 @$tokens and ref $tokens->[0] and ($tokens->[0][1] || '') eq "()"
117 28 27 3 ref $module and ref $module->[0]
139 21 24 2 ref $module and ($module->[1] || '') eq "WORD"
142 0 0 2 @$tokens and ref $tokens->[0]
0 1 1 @$tokens and ref $tokens->[0] and ($tokens->[0][1] || '') eq "()"
145 22 21 3 ref $module and ref $module->[0]
221 0 0 32 ref $token and $token->[1]
0 1 31 ref $token and $token->[1] and $token->[1] eq "WORD"
230 0 0 32 ref $token and $token->[1]
0 26 6 ref $token and $token->[1] and $token->[1] =~ /^\{/
276 0 0 22 ref $token and $token->[1]
0 12 10 ref $token and $token->[1] and $token->[1] eq "WORD"
279 1 4 5 @$tokens and is_version($tokens->[0])
285 0 0 22 ref $token and $token->[1]
0 14 8 ref $token and $token->[1] and $token->[1] eq "ATTRIBUTE"
289 0 0 8 is_module_name($name) and is_version($version)
307 0 0 0 @$tokens and is_version($tokens->[0])

or 2 conditions

line l !l condition
111 30 2 $module->[1] || ''
114 2 0 $tokens->[0][1] || ''
139 24 2 $module->[1] || ''
142 2 0 $tokens->[0][1] || ''
288 4 4 $version ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
87 2 2 0 $module->[1] eq 'WORD' || $module->[1] eq 'KEYWORD'