Branch Coverage

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


line true false branch
107 1 0 unless $self->_data->{'version'}
110 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'}
219 0 8 if $$phone{'type'} and ref $$phone{'type'} ne 'ARRAY'
228 4 4 if $preferred
243 0 8 if $$address{'type'} and ref $$address{'type'} ne 'ARRAY'
251 0 8 if $preferred
276 0 8 unless $$email_address{'address'}
278 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