Branch Coverage

blib/lib/Text/vCard/Precisely/V3.pm
Criterion Covered Total %
branch 38 58 65.5


line true false branch
165 0 71 unless $method and $content
166 0 71 if (ref $content eq 'Hash') { }
0 71 elsif (ref $content eq 'Array') { }
185 0 2 unless open my $vcf, '<', $filename
189 0 2 unless $data->{'type'} eq 'VCARD'
213 5 30 if $name eq 'VERSION'
215 5 25 if ($name eq 'N') { }
5 20 elsif ($name eq 'TEL') { }
5 15 elsif ($name eq 'REV') { }
0 15 elsif ($name eq 'ADR') { }
220 5 0 unless exists $hashref->{$name}
221 0 5 if (ref $node->{'params'} eq 'ARRAY') { }
0 5 elsif (ref $node->{'param'} eq 'HASH') { }
225 0 0 if ref $node->{'params'}
258 0 15 if $content->{'param'}{'TYPE'}
259 0 15 if $content->{'param'}{'PREF'}
288 2 49 if $self->bday
289 0 51 if $self->uid
299 10 76 if $self->prodid
309 0 2032 unless $method
310 239 1793 if (ref $self->$method eq 'ARRAY') { }
30 1763 elsif ($self->$method and $self->$method->isa('Text::vCard::Precisely::V3::Node::N')) { }
16 1747 elsif ($self->$method) { }
316 271 0 if ($item->isa('Text::vCard::Precisely::V3::Node')) { }
0 0 elsif ($item) { }
336 2 84 if $self->tz
337 17 69 if $self->rev
344 0 86 unless my $str = shift()
364 0 2 unless $filename