Branch Coverage

lib/Text/vCard.pm
Criterion Covered Total %
branch 63 68 92.6


line true false branch
59 33 84 if (not defined $nodes and $value)
68 34 83 if (scalar $nodes and $value)
74 116 1 if scalar $nodes
132 26 12 if (defined $conf->{'asData_node'})
138 14 188 if ($node_type =~ /\./)
172 2 65 unless defined $conf and defined $conf->{'node_type'}
173 36 29 unless (defined $conf->{'data'})
218 1 360 unless defined $conf
219 12 348 if (ref $conf eq 'HASH') { }
221 6 6 if defined $conf->{'types'}
244 0 1 unless defined $node_type
247 1 0 if defined $types
249 0 1 unless $node and @{$node;} > 0 and exists $node->[0]{'value'}
359 1 3 unless defined $group_name and $group_name ne ''
365 1 2 if (defined $node_type and $node_type ne '') { }
370 1 1 if $node->group eq $group_name
380 8 10 if ($node->group)
381 4 4 if $node->group eq $group_name
387 1 2 wantarray ? :
452 79 287 if defined $Text::vCard::node_aliases{$node_type}
454 49 317 unless defined $self->{'nodes'}{$node_type}
456 10 307 if ($types) { }
460 2 8 if (ref $types eq 'ARRAY') { }
471 9 20 unless $element->is_type($type)
473 14 9 if ($check == 1)
479 1 9 unless scalar @to_return
484 1 8 wantarray ? :
491 8 299 wantarray ? :
505 22 0 unless $fields
508 0 22 if ($fields) { }
532 10 2 if ($check->is_type('pref')) { }
547 15 252 if defined $Text::vCard::node_aliases{$node_type}
551 65 202 if (defined $value_fields->{$node_type}) { }
560 248 19 unless (defined $self->{'nodes'}{$node_type})