Branch Coverage

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


line true false branch
32 2524 25240 if exists $args{$field}
50 4 7572 if ($reset)
55 0 7576 if (defined $method and $method ne $serializer) { }
59 5048 2528 if exists $self->{'serializer_obj'}
71 2528 0 if ($serializer eq $self->{'serializer'})
80 630 630 if exists $self->{'persistent_obj'}
94 0 2650 if (@_)
105 252 1008 if (@_)
115 0 1008 if (@_)
124 882 4410 if (@_)
133 1008 6812 if (@_)
142 504 3788 if (@_)
151 504 2398 if (@_)
160 4 0 if (@_)
171 882 4796 if (@_)
180 0 4796 if (@_)
189 0 2398 if (@_)
198 0 15010 unless (defined $module_name)
201 7420 7590 if exists $_MODULES{$module_name}
202 7576 14 if (@_)
209 0 7590 if ($@)
233 882 0 if ($self->compressor eq 'Compress::Zlib') { }
0 0 elsif ($self->compressor eq 'Compress::PPMd') { }
243 882 0 if ($self->compressor eq 'Compress::Zlib') { }
0 0 elsif ($self->compressor eq 'Compress::PPMd') { }
289 0 1008 unless defined $secret
301 0 1008 unless defined $secret
323 0 1008 unless defined $old_digest
325 0 1008 unless $new_digest eq $old_digest
367 0 2398 if ($self->raw)
377 882 1516 if ($self->compress)
382 1008 1390 if (defined $self->secret)
389 1894 504 if ($self->portable)
393 2398 0 if ($self->serializer_token)
422 1390 504 if ($encoding eq 'hex') { }
504 0 elsif ($encoding eq 'b64') { }
435 1390 756 if ($encoding eq 'hex') { }
504 252 elsif ($encoding eq 'b64') { }
252 0 elsif (not $encoding =~ /\S/) { }
456 0 2398 if ($self->raw)
464 2398 0 if (defined $token) { }
468 882 1516 if $compressor
475 0 0 if ($self->portable)
479 2146 252 if (defined $encoding)
482 1008 1390 if (defined $self->secret)
485 882 1516 if ($compress)
490 0 2398 wantarray ? :