| lib/Mojolicious/Plugin/RelativeUrlFor.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 10 | 16 | 62.5 |
| line | true | false | branch |
|---|---|---|---|
| 12 | 0 | 11 | unless $rel->is_abs |
| 17 | 11 | 0 | if $base->host |
| 23 | 11 | 0 | unless $base_path->trailing_slash |
| 28 | 0 | 11 | if $rel->host |
| 30 | 0 | 11 | if $self->path->trailing_slash |
| 50 | 11 | 0 | if ($req_url->to_string) |
| 54 | 1 | 10 | unless $rel_url->to_string |
| 67 | 1 | 1 | if ($conf->{'replace_url_for'}) |