Branch Coverage

lib/Mojolicious/Plugin/UrlWith.pm
Criterion Covered Total %
branch 24 24 100.0


line true false branch
104 20 3 ref($_[-1]) =~ /^(?:HASH|ARRAY)$/ ? :
109 8 15 if ($self->parse_fragment)
110 6 2 if (defined $_[0] and ref $_[0] eq '')
116 17 6 unless ($url)
117 8 9 @args ? :
120 18 5 if (ref $args eq 'HASH') { }
2 3 elsif (ref $args eq 'ARRAY') { }
122 15 1 if (defined $$args{$key}) { }
153 4 6 unless (defined $_[-1] and ref $_[-1] eq 'CODE')
160 9 6 if (ref($_[$i]) =~ /^(?:HASH|ARRAY)/)
169 2 8 if (my $class = $self->current_page_class)
170 1 1 if ($url->path eq $controller->req->url->path)