Branch Coverage

blib/lib/Mojo/Parameters.pm
Criterion Covered Total %
branch 50 52 96.1


line true false branch
13 315 145 @_ == 1 ? :
17 48 288 if (ref $value eq 'ARRAY') { }
286 2 elsif (defined $value) { }
30 452 1132 if (exists $self->{'charset'})
31 193 1391 if (defined $self->{'string'}) { }
43 318 857 if $pairs->[$i] eq $name
52 5 20 @_ == 1 ? :
55 25 5 defined $value ? :
63 71 4874 @_ > 1 ? :
69 5 7824 if (@_)
76 284 7540 if (defined(my $str = delete $self->{'string'}))
78 0 284 unless length $str
82 0 441 unless $pair =~ /^([^=]+)(?:=(.*))?$/u
88 438 3 if $charset
90 438 3 if $charset
101 2498 35 unless @_
103 7 28 ref $_[0] eq 'ARRAY' ? :
110 49 355 if @_ > 1
121 18 93 $pairs->[$i] eq $name ? :
134 37 174 if (exists $hash{$name}) { }
135 32 5 if ref $hash{$name} ne "ARRAY"
151 238 2464 if (defined(my $str = $self->{'string'}))
152 237 1 if $charset
158 2360 104 unless @$pairs
164 211 5 if $charset
166 211 5 if $charset