Condition Coverage

blib/lib/Mojo/Util.pm
Criterion Covered Total %
condition 49 67 73.1


and 3 conditions

line !l l&&!r l&&r condition
241 1 5 93 length $cidr and length $addr
349 0 0 6 defined $count and $count =~ /\A\d+\z/a
366 6 0 0 not defined $read and $!{'EINTR'}
474 493 0 1 ref $_[0] and ref $_[0] eq "Mojo::ByteStream"
6111 594 2009 ref $_[0] and ref $_[0] eq "Mojo::ByteStream"
517 44 952 4 exists $ENTITIES{$name} and !$attr || $name =~ /;$/u || !($last =~ /[A-Za-z0-9=]/u)
529 427 278 128 $cookie && @part > 2 && lc $1 eq 'expires'
532 705 3 125 $expires and $str =~ /\G=\s*$EXPIRES_RE/cgou

or 2 conditions

line l !l condition
221 13 3 pos $value // 0
414 174 2 $row->[$i] //= ""
416 135 41 $spec[$i] // 0
475 493 0 shift() // ""
6637 68 shift() // ""
577 20937 77 $object->{$name} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
139 0 0 0 $ENCRYPTION{$key}{$salt} ||= Crypt::KeyDerivation::pbkdf2($key, $salt)
162 0 0 0 $ENCRYPTION{$key}{$salt} ||= Crypt::KeyDerivation::pbkdf2($key, $salt)
215 1 3 0 $params->{$name} //= unquote($1)
218 1 14 0 $params->{$name} //= $1
367 0 0 6 not defined $read or $read == 0
505 75 0 2 &find_encoding($_[0]) // croak("Unknown encoding '$_[0]'")
18771 77 0 $ENCODING{$_[0]} //= &find_encoding($_[0]) // croak("Unknown encoding '$_[0]'")
517 948 4 4 !$attr || $name =~ /;$/u || !($last =~ /[A-Za-z0-9=]/u)
580 1143 23 240 @_ > 1 or ref $_[0]

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
246 36 1 1 55 $v6 xor $addr =~ /:/u