Branch Coverage

lib/Mail/Make/Headers/Generic.pm
Criterion Covered Total %
branch 16 38 42.1


line true false branch
39 0 167 unless $self->SUPER::init(@_)
62 0 0 unless defined $fname and length $fname
64 0 0 if ($fname =~ /^([A-Za-z0-9\-]+)'([^']*)'(.+)$/)
74 0 0 if ($@)
78 0 0 wantarray ? :
80 0 0 wantarray ? :
92 7 25 if ($fname =~ /[^\x20-\x7E]/ or $fname =~ m([()<>\@,;:\\"/\[\]?=]))
94 6 1 unless defined $lang
108 0 141 unless $hv
115 0 1 unless $self->_load_class("Module::Generic::HeaderValue")
123 0 165 unless defined $this and length "$this"
125 0 165 unless $self->_load_class("Module::Generic::HeaderValue")
136 0 8 unless scalar @_ or $hv
137 0 136 unless $hv
138 128 8 if (@_)
150 0 0 if (@_) { }
171 25 1 if (@_) { }
181 0 1 unless defined $v and length "$v"
192 0 0 if (@_)