Condition Coverage

blib/lib/PDF/FacturX/XML.pm
Criterion Covered Total %
condition 65 150 43.3


and 3 conditions

line !l l&&!r l&&r condition
125 0 0 5 $xsd_root and -d $xsd_root
131 0 0 5 $main_xsd and -r $main_xsd
165 1 0 32 defined $inv->{$field} and length $inv->{$field}
175 2 0 23 defined $inv->{$party}{'name'} and length $inv->{$party}{'name'}
188 1 0 6 ref $inv->{'lines'} eq "ARRAY" and @{$inv->{'lines'};}
198 0 0 42 defined $line->{$f} and length $line->{$f}
248 8 0 0 defined $inv->{'notes'} and length $inv->{'notes'}
335 8 2 6 $is_seller and $party->{'siret'}
350 8 2 6 $is_seller and $party->{'vat'}
380 3 1 1 $pay->{'bic'} and $profile eq "en16931"
400 10 0 0 defined $reason and length $reason
401 10 0 0 defined $reason and length $reason
429 0 0 0 defined $reason and length $reason
523 233 0 300 defined $text and length $text

or 2 conditions

line l !l condition
34 2 0 $profile // "basic"
42 6 0 $profile //= "basic"
97 20 0 $profile //= "basic"
123 5 0 $profile //= "basic"
141 1 0 $@ // "erreur inconnue"
200 14 0 $line->{'vat_cat'} // "S"
215 0 0 $a->{'vat_cat'} // "S"
244 0 8 $inv->{'type_code'} // 380
304 0 8 $line->{'unit'} || 'C62'
308 8 0 $line->{'vat_cat'} || 'S'
312 8 0 $line->{'vat_rate'} || 0
315 8 0 $line->{'qty'} || 0
8 0 $line->{'unit_price'} || 0
323 8 0 $inv->{'seller'} || {}
324 8 0 $inv->{'buyer'} || {}
331 16 0 $profile //= "basic"
333 16 0 $party->{'name'} || ''
348 16 0 $party->{'country'} || 'FR'
360 8 0 $profile //= "basic"
362 8 0 $inv->{'currency'} || 'EUR'
373 5 1 $inv->{'payment'} || {}
392 10 0 $line->{'vat_rate'} || 0
393 10 0 $line->{'vat_cat'} || 'S'
394 10 0 $line->{'qty'} || 0
10 0 $line->{'unit_price'} || 0
405 0 0 $a->{'vat_rate'} || 0
406 0 0 $a->{'vat_cat'} || 'S'
407 0 0 $a->{'amount'} || 0
445 0 0 $a->{'amount'} || 0
449 0 0 $a->{'vat_cat'} || 'S'
451 0 0 $a->{'vat_rate'} || 0
0 0 $a->{'vat_cat'} // "S"
465 10 0 $line->{'qty'} || 0
10 0 $line->{'unit_price'} || 0
478 6 0 $inv->{'currency'} || 'EUR'
490 3 0 $line->{'qty'} || 0
3 0 $line->{'unit_price'} || 0
492 3 0 $line->{'vat_rate'} || 0
496 0 0 $a->{'amount'} || 0
504 2 0 $inv->{'currency'} || 'EUR'
530 92 0 $n // 0
535 8 0 $n // 0

or 3 conditions

line l !l&&r !l&&!r condition
124 0 5 0 $xsd_root //= xsd_root_for($profile)
185 5 2 3 $profile eq 'basic' || $profile eq 'en16931'
259 3 2 3 $profile eq 'basic' || $profile eq 'en16931'
281 0 6 0 $inv->{'delivery_date'} // $inv->{'date'}
401 0 0 0 $by_rate{$key}{'reason'} //= $reason
409 0 0 0 $by_rate{$key}{'cat'} //= $cat
410 0 0 0 $by_rate{$key}{'rate'} //= $rate
428 0 0 0 $r->{'reason'} // $global_reason