Branch Coverage

blib/lib/Data/Model/Driver/Memcached.pm
Criterion Covered Total %
branch 69 168 41.0


line true false branch
16 0 4 if (my $serializer = $$self{'serializer'})
17 0 0 unless $serializer =~ s/^\+//
19 0 0 unless ($serializer eq 'Data::Model::Driver::Memcached::Serializer::Default')
31 0 0 unless $ret
32 0 0 if $$self{'serializer'}
34 0 0 if $map
35 0 0 if $$self{'ignore_undef_value'}
36 0 0 if $$self{'strip_keys'}
45 0 0 unless $ret
49 0 0 if $$self{'serializer'}
51 0 0 if $map
52 0 0 if $$self{'ignore_undef_value'}
53 0 0 if $$self{'strip_keys'}
65 0 0 unless $ret
66 0 0 if $$self{'serializer'}
68 0 0 if $map
69 0 0 if $$self{'ignore_undef_value'}
70 0 0 if $$self{'strip_keys'}
79 0 0 if $$self{'strip_keys'}
80 0 0 if $$self{'ignore_undef_value'}
82 0 0 if $map
83 0 0 if $$self{'serializer'}
84 0 0 $$self{'always_overwrite'} ? :
87 0 0 unless $ret
97 0 0 if $$self{'strip_keys'}
98 0 0 if $$self{'ignore_undef_value'}
100 0 0 if $map
101 0 0 if $$self{'serializer'}
103 0 0 unless $ret
113 0 0 unless ($old_cache_key eq $new_cache_key)
115 0 0 unless $ret
119 0 0 if $$self{'strip_keys'}
120 0 0 if $$self{'ignore_undef_value'}
122 0 0 if $map
123 0 0 if $$self{'serializer'}
125 0 0 unless $ret
134 0 0 unless $data
136 0 0 unless $ret
163 1 2 unless exists $$data{$key} and defined $$data{$key}
172 1 2 unless exists $$data{$key} and defined $$data{$key}
179 0 0 if ($is_reverse)
189 0 0 if (my $n = $$map{$k}) { }
224 0 20 unless ref $hash eq 'HASH'
225 0 20 if ($HAS_DATA_MESSAGEPACK)
228 0 0 if ($@)
234 0 0 unless ($@)
243 0 20 if $num > 4294967295
246 19 1 if ($num < 16) { }
1 0 elsif ($num < 65535) { }
259 77 0 if (defined $k) { }
260 20 57 if ($k =~ /\A[0-9]+\z/ and $k <= 4294967295) { }
262 8 12 if ($k <= 127) { }
3 9 elsif ($k <= 255) { }
3 6 elsif ($k <= 65535) { }
6 0 elsif ($k <= 4294967295) { }
279 54 3 if ($l < 32) { }
2 1 elsif ($l <= 65535) { }
1 0 elsif ($l <= 4294967295) { }
295 73 4 if (defined $v) { }
296 42 31 if ($v =~ /\A[0-9]+\z/ and $v <= 4294967295) { }
298 18 24 if ($v <= 127) { }
6 18 elsif ($v <= 255) { }
6 12 elsif ($v <= 65535) { }
12 0 elsif ($v <= 4294967295) { }
315 28 3 if ($l < 32) { }
2 1 elsif ($l <= 65535) { }
1 0 elsif ($l <= 4294967295) { }
340 0 20 unless $fmt eq $MAGIC
341 0 20 if ($HAS_DATA_MESSAGEPACK)
351 1 19 if ($map_type eq $MAP16) { }
0 19 elsif ($map_type eq $MAP32) { }
361 0 19 if $elements >= 16
373 4 150 if ($data_type eq $NIL) { }
36 114 elsif ($data_type eq $UINT8 or $data_type eq $UINT16 or $data_type eq $UINT32) { }
376 9 27 if ($data_type eq $UINT8) { }
9 18 elsif ($data_type eq $UINT16) { }
18 0 elsif ($data_type eq $UINT32) { }
387 4 110 if ($data_type eq $RAW16) { }
2 108 elsif ($data_type eq $RAW32) { }
395 26 82 if ($len <= 127) { }
401 0 82 if $len >= 32
404 88 26 unless ($is_num)
410 77 77 if ($_) { }
417 0 20 unless $len == $pos