Branch Coverage

blib/lib/URI/Encode.pm
Criterion Covered Total %
branch 20 28 71.4


line true false branch
59 0 6 if (ref $in[0] eq 'HASH') { }
93 0 9 unless defined $data
98 7 2 if (defined $options)
99 5 2 if (ref $options eq 'HASH') { }
101 2 3 if exists $options->{'encode_reserved'}
103 3 2 if exists $options->{'double_encode'}
114 7 2 if ($double_encode) { }
118 4 5 if ($enc_res) { }
137 0 4 unless defined $data
162 85 0 if exists $self->{'enc_map'}{$char}
170 0 2 unless defined $post
173 2 0 if ($post =~ /^([a-fA-F0-9]{2})/x)
174 2 0 if (exists $self->{'dec_map'}{$1})
187 14 0 if exists $self->{'dec_map'}{uc $char}