Branch Coverage

blib/lib/XML/Generator/vCard.pm
Criterion Covered Total %
branch 40 88 45.4


line true false branch
97 0 1 if ($@)
122 0 1 if (scalar @$cards > 1) { }
161 0 3 if (my $value = $vcard->$prop)
227 0 1 unless ($n)
235 0 1 if ($n->family or $n->given)
245 0 0 if (my $o = $n->middle)
250 0 0 if (my $p = $n->prefixes)
255 0 0 if (my $s = $n->suffixes)
274 0 1 if (my $nick = $vcard->nickname)
292 1 0 unless ($photos)
313 0 1 if (my $bday = $vcard->bday)
331 0 1 unless ($addresses)
346 0 1 if (my $p = $adr->po_box)
351 0 1 if (my $e = $adr->extended)
356 1 0 if (my $s = $adr->street)
361 1 0 if (my $c = $adr->city)
366 1 0 if (my $r = $adr->region)
371 0 1 if (my $p = $adr->post_code)
376 1 0 if (my $c = $adr->country)
398 1 0 unless ($labels)
428 1 0 unless ($numbers)
458 1 0 unless ($addresses)
492 5 0 unless ($addresses)
519 0 1 if (my $m = $vcard->mailer)
536 0 1 if (my $tz = $vcard->tz)
555 1 0 unless ($geo)
585 0 1 unless ($orgs)
594 1 0 if (my $name = $o->name)
600 1 0 if (my $units = $o->unit)
622 0 1 if (my $t = $vcard->title)
639 0 1 if (my $r = $vcard->role)
658 1 0 unless ($logos)
682 0 1 unless ($cats)
710 0 1 unless ($n)
714 1 0 if (my $n = $vcard->note)
733 1 0 unless ($snds)
753 0 1 if (my $url = $vcard->url)
772 1 0 unless ($keys)
822 1 7 if ($$data{'CDATA'})
826 8 0 if ($$data{'Value'})
830 1 7 if ($$data{'CDATA'})
846 0 0 if (not $$data{'name'} =~ /^k/ and $$data{'type'})
851 0 0 $$data{'name'} =~ /^[pl]/i ? :
864 0 0 if ($obj->is_type('base64')) { }