Branch Coverage

blib/lib/vCard.pm
Criterion Covered Total %
branch 39 48 81.2


line true false branch
108 1 0 unless $self->_data->{'version'}
111 1 0 unless ref $self->_data->{'photo'} =~ /^URI/
173 4 3 if $phones
174 4 3 if $addresses
175 4 3 if $email_addresses
189 7 35 if ($node_type eq 'full_name') { }
190 3 4 unless $data->{'full_name'}
193 12 23 unless $data->{$node_type}
202 3 4 unless $data->{'family_names'}
203 3 4 unless $data->{'given_names'}
204 5 2 unless $data->{'other_names'}
205 3 4 unless $data->{'honorific_prefixes'}
206 3 4 unless $data->{'honorific_suffixes'}
208 4 3 if $value ne ';;;;'
218 0 8 unless $phone->{'number'}
220 0 8 if $phone->{'type'} and ref $phone->{'type'} ne 'ARRAY'
228 4 4 if $preferred
244 0 8 if $address->{'type'} and ref $address->{'type'} ne 'ARRAY'
251 0 8 if $preferred
277 0 8 unless $email_address->{'address'}
280 0 8 if $email_address->{'type'} and ref $email_address->{'type'} ne 'ARRAY'
287 4 4 if $preferred
424 0 92 if $value and $attr eq 'photo' and ref $value =~ /^URI/
427 92 50 if $value