Branch Coverage

lib/HTTP/Promise/Headers/ContentDisposition.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
32 4 41 if @_ == 1 and $self->_is_a($_[0], "Module::Generic::Null")
33 39 6 if (@_)
36 0 39 unless defined $str and length "$str"
40 0 39 if scalar keys %$params
43 0 45 unless $self->SUPER::init(@_)
53 5 7 if (@_) { }
57 4 1 if ($hv) { }
79 1 12 if (@_) { }
82 0 1 if (not defined $fname) { }
90 1 0 if (my $enc = $self->_filename_encode($fname, $lang)) { }
92 0 1 unless $self->_set_get_param("filename*", $enc)
103 9 3 if (defined $v and length $v) { }
1 2 elsif ($v = $self->_set_get_param('filename*')) { }
125 10 1 if (@_)
128 5 5 unless (defined $v)
132 4 1 if lc $v ne "utf-8" and lc $v ne "utf8"
134 0 1 if lc $v eq "utf8"