Condition Coverage

lib/HTTP/Promise/Headers/ContentType.pm
Criterion Covered Total %
condition 7 14 50.0


and 3 conditions

line !l l&&!r l&&r condition
30 2 42 0 @_ == 1 and $self->_is_a($_[0], "Module::Generic::Null")
34 0 0 42 defined $str and length "$str"

or 2 conditions

line l !l condition
36 42 0 $self->_parse_header_value($str) || (return $self->pass_error)
63 1 0 shift @_ || (return $self->error('No mime type was provided.'))
64 1 0 $self->_new_hv($mime) || (return $self->pass_error)
71 32 0 $self->_hv || (return '')