Branch Coverage

blib/lib/Mojo/UserAgent/Mockable/Serializer.pm
Criterion Covered Total %
branch 21 40 52.5


line true false branch
34 0 326 unless ($transaction->$Mojo::UserAgent::Mockable::Serializer::_isa('Mojo::Transaction'))
45 325 0 if $event eq 'pre_freeze' or $event eq 'post_freeze' or $event eq 'resume' or $event eq 'finish'
47 0 0 if warnings::enabled()
64 326 326 if ($message->can('url'))
68 4 0 if $event eq 'pre_freeze' or $event eq 'post_freeze'
69 0 0 if warnings::enabled()
79 0 326 unless ($url->$Mojo::UserAgent::Mockable::Serializer::_isa('Mojo::URL'))
84 1508 774 if defined $url->$attr
86 0 326 if (%{$url->base;})
97 0 30 if (ref $slush ne 'ARRAY')
124 0 435 unless (defined $slush->{$key})
132 0 145 unless ($obj->$Mojo::UserAgent::Mockable::Serializer::_isa('Mojo::Transaction'))
154 0 145 if ($slush->{'events'})
165 0 580 unless ($slush->{$key})
172 145 145 if ($slush->{'url'} and $obj->can('url'))
175 0 290 unless ($obj->can('parse'))
180 0 290 unless ($obj->can('emit'))
183 0 290 if ($slush->{'events'})
195 0 145 unless ref $slush
202 0 145 if ($slush->{'base'})