Branch Coverage

blib/lib/Mail/Message/Head.pm
Criterion Covered Total %
branch 30 40 75.0


line true false branch
34 0 0 unless (caller)[0] eq "Carp"
46 0 140 if $class eq "Mail::Message::Head"
58 0 140 if $args->{'field_type'}
61 12 128 if defined $args->{'message'}
83 0 62 unless @_
96 123 0 if (@_)
118 160 577 if (defined $index) { }
22 555 elsif (wantarray) { }
119 147 0 $index == 0 ? :
0 147 ref $value eq 'ARRAY' ? :
13 147 !defined($value) ? :
125 4 16 ref $value eq 'ARRAY' ? :
2 20 !defined($value) ? :
130 2 197 ref $value eq 'ARRAY' ? :
356 199 !defined($value) ? :
142 1 1 if wantarray
146 1 0 defined $got ? :
155 130 0 if $type
223 4 227 if (defined $known->{$name}) { }
224 1 3 if (ref $known->{$name} eq 'ARRAY') { }