Condition Coverage

blib/lib/Mojolicious/Plugin/Util/Endpoint.pm
Criterion Covered Total %
condition 15 22 68.1


and 2 conditions

line l !l condition
55 108 1 do { $values->isa('Mojo::URL') if &blessed($values) } && do { return $endpoints{$name} = $values->clone }

and 3 conditions

line !l l&&!r l&&r condition
84 39 0 8 &blessed($endpoints{$name}) and $endpoints{$name}->isa('Mojo::URL')
169 39 0 0 !$name || $name eq 'current' and $req->url->path->trailing_slash
249 46 0 7 exists $param->{'?'} and not defined $param->{'?'}

or 2 conditions

line l !l condition
34 10 3 $param //= {}
40 13 0 $param // {}
52 39 20 $values ||= {}
245 27 80 $fill or ''

or 3 conditions

line l !l&&r !l&&!r condition
169 0 0 39 !$name || $name eq 'current'