Branch Coverage

blib/lib/vCard.pm
Criterion Covered Total %
branch 41 54 75.9


line true false branch
109 1 0 unless $self->_data->{'version'}
112 1 0 unless ref $self->_data->{'photo'} =~ /^URI/
174 0 7 if $self->_data->{'org'}
175 4 3 if $phones
176 4 3 if $addresses
177 4 3 if $email_addresses
192 7 35 if ($node_type eq 'full_name') { }
193 3 4 unless $data->{'full_name'}
196 12 23 unless $data->{$node_type}
204 0 28 unless ref $data eq 'HASH'
211 0 0 unless $data
218 3 4 unless $data->{'family_names'}
219 3 4 unless $data->{'given_names'}
220 5 2 unless $data->{'other_names'}
221 3 4 unless $data->{'honorific_prefixes'}
222 3 4 unless $data->{'honorific_suffixes'}
225 4 3 if $value ne ';;;;'
235 0 8 unless $phone->{'number'}
237 0 8 if $phone->{'type'} and ref $phone->{'type'} ne 'ARRAY'
245 4 4 if $preferred
257 0 8 if $address->{'type'} and ref $address->{'type'} ne 'ARRAY'
264 0 8 if $preferred
286 0 8 unless $email_address->{'address'}
289 0 8 if $email_address->{'type'} and ref $email_address->{'type'} ne 'ARRAY'
296 4 4 if $preferred
430 0 92 if $value and $attr eq 'photo' and ref $value =~ /^URI/
433 92 50 if $value