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') { }
100 2 3 if exists $$options{'encode_reserved'}
102 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}
169 0 34 unless defined $post
170 34 0 if ($post =~ /^([a-fA-F0-9]{2})/x)
171 0 34 unless exists $$self{'dec_map'}{$1}
181 14 0 if exists $$self{'dec_map'}{uc $char}