Branch Coverage

blib/lib/PHP/Session/Serializer/PHP.pm
Criterion Covered Total %
branch 52 64 81.2


line true false branch
26 20 2 if (defined $$data{$key}) { }
37 0 42 if (not defined $value) { }
35 7 elsif (not ref $value) { }
3 4 elsif (ref $value eq 'HASH') { }
0 4 elsif (ref $value eq 'ARRAY') { }
4 0 elsif (ref $value eq 'PHP::Session::Object') { }
41 4 31 if (is_int($value)) { }
2 29 elsif (is_float($value)) { }
87 3 0 ref $value eq 'HASH' ? :
145 258 51 $num ? :
177 3565 63 if ($self->in_array) { }
178 3514 51 unless ($empty_skip)
182 309 3256 if ($self->finished_array) { }
187 65 244 if (defined $class) { }
222 0 73 unless $$decoder{'buffer'} =~ s/^(!?)(.*?)\|//
223 10 63 if ($1) { }
247 0 3577 unless $$decoder{'buffer'} =~ s/^(?:$re)//
248 2414 1163 if (defined $1) { }
730 433 elsif (defined $2) { }
5 428 elsif (defined $3) { }
244 184 elsif (defined $4) { }
65 119 elsif (defined $5) { }
33 86 elsif (defined $6) { }
74 12 elsif (defined $7) { }
12 0 elsif (defined $8) { }
286 0 2414 unless $value =~ s/^"// and $value =~ s/";$//
294 0 309 unless $$decoder{'buffer'} =~ s/^{//
295 258 51 if ($decoder->elements_count) { }
306 0 309 unless $$decoder{'buffer'} =~ s/^}//
307 271 38 $decoder->in_array ? :
318 0 65 unless $value =~ s/^"// and $value =~ s/":$//
319 0 65 unless $$decoder{'buffer'} =~ s/^(\d+)://