Condition Coverage

lib/HTTP/Promise/Headers/Generic.pm
Criterion Covered Total %
condition 40 94 42.5


and 3 conditions

line !l l&&!r l&&r condition
120 0 0 87 defined $this and length "$this"
134 0 0 10 defined $str and length "$str"
215 0 0 5 defined $this and length "$this"
236 0 0 0 defined $this and length "$this"
237 0 0 0 not $self->_is_array($this) and !ref($this) || overload::Method($this, '""')
451 1 2 1 defined $bool and $bool
467 0 0 5 defined $bool and $bool
495 1 1 0 defined $v and not $self->_is_integer($v)
525 0 0 0 $opts->{'maybe_boolean'} and $v
526 0 2 0 exists $opts->{'maybe_boolean'} and $opts->{'maybe_boolean'}
548 0 0 0 exists $opts->{'maybe_boolean'} and $opts->{'maybe_boolean'}
570 1 0 1 $opts->{'needs_quotes'} and $self->can("_needs_quotes")
607 2 1 11 defined $v and length "$v"
653 23 0 44 defined $val and length "$val"
661 0 0 35 defined $elem and length "$elem"

or 2 conditions

line l !l condition
94 0 0 'Module::Generic::HeaderValue'->new(shift @_) || (return $self->pass_error('Module::Generic::HeaderValue'->error))
123 87 0 'Module::Generic::HeaderValue'->new_from_header($this, @_) || (return $self->pass_error('Module::Generic::HeaderValue'->error))
194 0 0 'HTTP::Promise::Field::QualityValue'->new($elem, $val) || (return $self->pass_error('HTTP::Promise::Field::QualityValue'->error))
351 0 0 $_[0]->value // 1
0 0 $_[1]->value // 1
352 4 1 $_[1]->value // 1
1 4 $_[0]->value // 1
360 0 0 shift @_ || (return $self->error('No parameter name was provided.'))
361 0 0 $self->_hv || (return $self->error('Header value object could not be found!'))
380 107 0 shift @_ || (return $self->error('No parameter name was provided.'))
396 0 0 $self->_hv || (return $self->error('Header value object could not be found!'))
415 15 13 $opts->{'separator'} || $opts->{'sep'} || ','
416 7 21 $opts->{'equal'} || '='
442 32 0 shift @_ || (return $self->error('No parameter name was provided.'))
491 18 0 shift @_ || (return $self->error('No parameter name was provided.'))
505 76 0 shift @_ || (return $self->error('No parameter name was provided.'))
508 2 74 $opts->{'needs_quotes'} //= 0
509 2 74 $opts->{'maybe_boolean'} //= 0
594 14 0 shift @_ || (return $self->error('No parameter name was provided.'))
595 14 0 $self->_hv || (return $self->error('Header value object could not be found!'))

or 3 conditions

line l !l&&r !l&&!r condition
237 0 0 0 !ref($this) || overload::Method($this, '""')
384 18 89 0 scalar @_ or $hv
525 2 0 0 not $opts->{'maybe_boolean'} or $opts->{'maybe_boolean'} and $v