blib/lib/Ledger/Parser.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 40 | 55 | 72.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
120 | 27 | 4 | 1 | $commodity1 and $commodity2 |
185 | 18 | 1 | 0 | $num_postings == 1 and not defined !$tx->{'postings'}[0]{'amount'} |
297 | 74 | 72 | 0 | $in_tx and !($line =~ /\S/) || $line =~ /^\S/ |
354 | 1 | 50 | 5 | $in_tx and $line =~ /^(\s+);(.*?)(\R?)\z/ |
360 | 1 | 0 | 50 | $in_tx and $line =~ /^\s/ |
372 | 2 | 1 | 1 | $oparen eq '[' and $cparen eq ']' |
1 | 1 | 1 | $oparen eq '(' and $cparen eq ')' |
line | l | !l | condition |
---|---|---|---|
78 | 0 | 1 | $attrs{'input_date_format'} //= 'YYYY/MM/DD' |
125 | 16 | 15 | ($commodity1 || $commodity2) // '' |
155 | 46 | 0 | $line->[2] // '' |
371 | 4 | 45 | $2 // '' |
2 | 47 | $4 // '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
79 | 0 | 1 | 0 | $attrs{'year'} //= (localtime)[5] + 1900 |
100 | 20 | 0 | 6 | $1 || $self->{'year'} |
106 | 0 | 0 | 0 | $1 || $self->{'year'} |
125 | 4 | 12 | 15 | $commodity1 || $commodity2 |
297 | 17 | 0 | 55 | !($line =~ /\S/) || $line =~ /^\S/ |
372 | 4 | 0 | 45 | $oparen || $cparen |
45 | 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 ')' |