Branch Coverage

lib/Mail/Make/Headers/ContentDisposition.pm
Criterion Covered Total %
branch 26 38 68.4


line true false branch
37 1 41 unless defined $disposition and length "$disposition"
42 0 41 scalar %$params ? :
1 40 unless $self->disposition($disposition, scalar %$params ? %$params : ())
43 0 40 unless $self->SUPER::init(@_)
53 47 7 if (@_) { }
56 2 45 unless ($dispo =~ /$Mail::Make::Headers::ContentDisposition::VALID_DISPOSITIONS/)
63 5 40 if ($hv) { }
72 0 45 if scalar keys %$params
89 33 1 if (@_) { }
92 1 32 unless (defined $fname)
96 1 0 if ($hv)
105 7 25 if (defined $encoded) { }
108 0 7 unless $self->_set_get_param("filename*", $encoded)
121 0 1 if (defined $v and length "$v")
124 0 0 if defined $charset
125 0 0 if defined $lang
136 2 0 if (@_)
139 2 0 if (defined $v and length $v)
141 1 1 if (lc $v ne "utf-8" and lc $v ne "utf8")