Condition Coverage

blib/lib/Ledger/Parser.pm
Criterion Covered Total %
condition 40 55 72.7


and 3 conditions

line !l l&&!r l&&r condition
119 22 4 1 $commodity1 and $commodity2
184 16 1 0 $num_postings == 1 and not defined !$$tx{'postings'}[0]{'amount'}
296 61 67 0 $in_tx and !($line =~ /\S/) || $line =~ /^\S/
353 1 45 5 $in_tx and $line =~ /^(\s+);(.*?)(\R?)\z/
359 1 0 45 $in_tx and $line =~ /^\s/
371 2 1 1 $oparen eq '[' and $cparen eq ']'
1 1 1 $oparen eq '(' and $cparen eq ')'

or 2 conditions

line l !l condition
77 0 1 $attrs{'input_date_format'} //= 'YYYY/MM/DD'
124 16 10 ($commodity1 || $commodity2) // ''
154 41 0 $$line[2] // ''
370 4 40 $2 // ''
2 42 $4 // ''

or 3 conditions

line l !l&&r !l&&!r condition
78 0 1 0 $attrs{'year'} //= (localtime)[5] + 1900
95 18 5 0 $1 || $$self{'year'}
101 0 0 0 $1 || $$self{'year'}
124 4 12 10 $commodity1 || $commodity2
296 17 0 50 !($line =~ /\S/) || $line =~ /^\S/
371 4 0 40 $oparen || $cparen
40 0 4 not $oparen || $cparen or $oparen eq '[' and $cparen eq ']'
1 0 3 not $oparen || $cparen or $oparen eq '[' and $cparen eq ']' or $oparen eq '(' and $cparen eq ')'