Branch Coverage

lib/HTTP/Promise/Headers/AltSvc.pm
Criterion Covered Total %
branch 10 40 25.0


line true false branch
31 0 4 if @_ == 1 and $self->_is_a($_[0], "Module::Generic::Null")
32 3 1 if (@_)
36 0 2 unless ($self->_is_array($this) and scalar @$this == 2 or not ref $this or overload::Method($this, "''"))
42 1 2 $self->_is_array($this) ? :
43 0 3 unless defined $hv
44 0 3 if scalar keys %$params
49 0 4 unless $self->SUPER::init(@_)
59 0 0 if (@_) { }
61 0 0 if @_ > 2
62 0 0 @_ > 1 ? :
64 0 0 if (@_ == 1)
66 0 0 if index($proto, "=") == -1
68 0 0 if $proto =~ /\%(?=\d{2})/
71 0 0 if ($hv = $self->_hv) { }
86 0 0 wantarray ? :
0 0 if $ref->is_empty
87 0 0 if wantarray
109 0 2 if (@_) { }
112 0 0 unless defined $proto and length "$proto"
114 0 0 if ($hv) { }