blib/lib/Mojo/Util.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 46 | 52 | 88.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
210 | 1 | 5 | 93 | length $cidr and length $addr |
413 | 485 | 0 | 1 | ref $_[0] and ref $_[0] eq "Mojo::ByteStream" |
6012 | 581 | 1966 | ref $_[0] and ref $_[0] eq "Mojo::ByteStream" | |
456 | 44 | 970 | 4 | exists $ENTITIES{$name} and !$attr || $name =~ /;$/u || !($last =~ /[A-Za-z0-9=]/u) |
468 | 412 | 263 | 123 | $cookie && @part > 2 && lc $1 eq 'expires' |
471 | 675 | 3 | 120 | $expires and $str =~ /\G=\s*$EXPIRES_RE/cgou |
line | l | !l | condition |
---|---|---|---|
183 | 13 | 3 | pos $value // 0 |
353 | 174 | 2 | $row->[$i] //= "" |
355 | 135 | 41 | $spec[$i] // 0 |
414 | 485 | 0 | shift() // "" |
6525 | 68 | shift() // "" | |
516 | 19840 | 73 | $object->{$name} //= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
177 | 1 | 3 | 0 | $params->{$name} //= unquote($1) |
180 | 1 | 14 | 0 | $params->{$name} //= $1 |
444 | 71 | 0 | 2 | &find_encoding($_[0]) // croak("Unknown encoding '$_[0]'") |
18281 | 73 | 0 | $ENCODING{$_[0]} //= &find_encoding($_[0]) // croak("Unknown encoding '$_[0]'") | |
456 | 966 | 4 | 4 | !$attr || $name =~ /;$/u || !($last =~ /[A-Za-z0-9=]/u) |
519 | 1076 | 23 | 238 | @_ > 1 or ref $_[0] |
line | l&&r | l&&!r | !l&&r | !l&&!r | condition |
---|---|---|---|---|---|
215 | 36 | 1 | 1 | 55 | $v6 xor $addr =~ /:/u |