blib/lib/Mojolicious/Plugin/HeaderCondition.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 15 | 20 | 75.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
16 | 3 | 0 | 127 | $value and $pattern |
3 | 4 | 123 | $value and $pattern and &is_regexp($pattern) | |
4 | 101 | 22 | $value and $pattern and &is_regexp($pattern) and $value =~ /$pattern/u | |
17 | 3 | 101 | 4 | $value && defined $pattern && $pattern eq $value |
22 | 0 | 0 | 9 | $patterns and ref $patterns eq "HASH" |
0 | 0 | 9 | $patterns and ref $patterns eq "HASH" and keys %$patterns |
line | l | !l | condition |
---|---|---|---|
26 | 5 | 4 | _check($headers->header($_), $patterns->{$_}) or return undef |