Branch Coverage

blib/lib/XML/Generator/vCard/RDF.pm
Criterion Covered Total %
branch 51 106 48.1


line true false branch
102 0 1 unless ($self)
127 1 2 if ($uri)
156 0 1 if ($@)
224 0 3 if (my $value = $vcard->$prop)
287 0 1 unless ($n)
295 0 1 if ($n->family or $n->given)
301 0 0 if (my $f = $n->family)
306 0 0 if (my $g = $n->given)
311 0 0 if (my $o = $n->middle)
316 0 0 if (my $p = $n->prefixes)
321 0 0 if (my $s = $n->suffixes)
340 0 1 if (my $nick = $vcard->nickname)
372 0 1 if (my $bday = $vcard->bday)
398 0 1 if (my $p = $adr->po_box)
403 0 1 if (my $e = $adr->extended)
408 1 0 if (my $s = $adr->street)
413 1 0 if (my $c = $adr->city)
418 1 0 if (my $r = $adr->region)
423 0 1 if (my $p = $adr->post_code)
428 1 0 if (my $c = $adr->country)
545 5 0 unless ($accounts)
570 0 1 if (my $m = $vcard->mailer)
586 0 1 if (my $tz = $vcard->tz)
604 0 1 unless ($geo)
637 0 1 unless ($orgs)
643 0 0 unless ($org->name or $org->unit)
652 1 0 if (my $n = $org->name)
657 1 0 if (my $u = $org->unit)
662 0 1 if ($count == 1) { }
1 0 elsif ($count) { }
695 0 1 if (my $t = $vcard->title)
711 0 1 if (my $r = $vcard->role)
746 0 1 unless ($cats)
778 0 1 unless ($notes)
812 0 1 if (my $url = $vcard->url)
874 1 15 if ($$data{'CDATA'})
878 15 1 if ($$data{'Value'})
882 1 15 if ($$data{'CDATA'})
903 7 0 if defined $_
977 1 3 unless ($list)
981 0 3 scalar @$list > 1 ? :
986 0 3 $bag ? :
991 0 3 if ($bag)
997 0 3 if ($bag)
1006 0 3 if ($bag)
1011 0 3 if ($bag)
1024 3 1 unless ($list)
1028 0 1 scalar @$list > 1 ? :
1033 0 1 $bag ? :
1041 1 0 unless ($bag)
1045 1 0 if (not $obj->is_type('base64')) { }
1068 0 0 if (not $obj->is_type('base64')) { }
1082 0 0 if ($obj->is_type('base64'))