Branch Coverage

lib/HTTP/Promise/Headers/Link.pm
Criterion Covered Total %
branch 15 32 46.8


line true false branch
34 0 4 if @_ == 1 and $self->_is_a($_[0], "Module::Generic::Null")
35 2 2 if (@_)
38 0 2 unless defined $str and length "$str"
42 0 2 if scalar keys %$params
45 0 4 unless $self->SUPER::init(@_)
66 1 3 if (@_) { }
72 0 1 if ($hv) { }
102 1 2 if (@_) { }
105 0 1 if (not defined $title) { }
113 1 0 if (my $enc = $self->_filename_encode($title, $lang)) { }
115 0 1 unless $self->_set_get_param("title*", $enc)
126 0 2 unless (defined $v and length $v)
128 0 0 if ($v = $self->_set_get_param("title*"))
143 0 0 if (@_)
146 0 0 if lc $v ne "utf-8" and lc $v ne "utf8"
148 0 0 if lc $v eq "utf8"