Branch Coverage

blib/lib/Data/Serializer.pm
Criterion Covered Total %
branch 66 94 70.2


line true false branch
32 2384 23840 if exists $args{$field}
50 4 7152 if ($reset)
55 0 7156 if (defined $method and $method ne $serializer) { }
59 4768 2388 if exists $$self{'serializer_obj'}
71 2388 0 if ($serializer eq $$self{'serializer'})
80 595 595 if exists $$self{'persistent_obj'}
94 0 2503 if (@_)
105 238 952 if (@_)
115 0 952 if (@_)
124 833 4165 if (@_)
133 952 6434 if (@_)
142 476 3578 if (@_)
151 476 2265 if (@_)
160 4 0 if (@_)
171 833 4530 if (@_)
180 0 4530 if (@_)
189 0 2265 if (@_)
198 0 14177 unless (defined $module_name)
201 7007 7170 if exists $_MODULES{$module_name}
202 7156 14 if (@_)
209 0 7170 if ($@)
233 833 0 if ($self->compressor eq 'Compress::Zlib') { }
0 0 elsif ($self->compressor eq 'Compress::PPMd') { }
243 833 0 if ($self->compressor eq 'Compress::Zlib') { }
0 0 elsif ($self->compressor eq 'Compress::PPMd') { }
289 0 952 unless defined $secret
301 0 952 unless defined $secret
323 0 952 unless defined $old_digest
325 0 952 unless $new_digest eq $old_digest
367 0 2265 if ($self->raw)
377 833 1432 if ($self->compress)
382 952 1313 if (defined $self->secret)
389 1789 476 if ($self->portable)
393 2265 0 if ($self->serializer_token)
422 1313 476 if ($encoding eq 'hex') { }
476 0 elsif ($encoding eq 'b64') { }
435 1313 714 if ($encoding eq 'hex') { }
476 238 elsif ($encoding eq 'b64') { }
238 0 elsif (not $encoding =~ /\S/) { }
456 0 2265 if ($self->raw)
464 2265 0 if (defined $token) { }
468 833 1432 if $compressor
475 0 0 if ($self->portable)
479 2027 238 if (defined $encoding)
482 952 1313 if (defined $self->secret)
485 833 1432 if ($compress)
490 0 2265 wantarray ? :