Branch Coverage

blib/lib/Mojolicious/Routes/Route.pm
Criterion Covered Total %
branch 63 66 95.4


line true false branch
20 12 0 if $dynamic
33 4 25 ref $_[0] eq 'ARRAY' ? :
47 166 93 if exists $self->{'has_websocket'}
51 592 14667 $_[0]->inline ? :
57 1372 57 unless @_
68 1783 441 unless @_
69 435 6 ref $_[0] eq 'ARRAY' ? :
70 421 20 unless @$conditions
90 725 2 unless my $parent = $self->parent
109 7 716 if defined $format and not $format
118 63 31 unless $route->via
63 31 unless my(@via) = @{[] unless $route->via;}
119 2 29 keys %via ? :
122 8 38 if $via{'POST'} and not $via{'GET'}
123 15 23 $via{'GET'} ? :
130 2 720 unless @_
133 169 551 if ($shortcut)
136 5 164 if (ref $shortcut or $shortcut =~ /^[\w:]+$/) { }
164 0 elsif ($shortcut =~ /^([\w\-:]+)?\#(\w+)?$/) { }
140 153 11 if defined $1
141 146 18 if defined $2
158 2062 423 unless @_
159 29 394 ref $_[0] ? :
160 398 25 if @$methods
183 414 428 if (not ref $arg || $pattern) { }
15 413 elsif (not ref $arg and @args) { }
46 367 elsif (not ref $arg) { }
274 93 elsif (ref $arg eq 'CODE') { }
8 85 elsif (ref $arg eq 'ARRAY') { }
85 0 elsif (ref $arg eq 'HASH') { }
203 17 417 $methods eq 'under' ? :
205 46 388 defined $name ? :
214 81 920 if ($child->has_custom_name) { }