Branch Coverage

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


line true false branch
35 0 326 unless ($transaction->$Mojo::UserAgent::Mockable::Serializer::_isa('Mojo::Transaction'))
46 325 0 if $event eq 'pre_freeze' or $event eq 'post_freeze' or $event eq 'resume' or $event eq 'finish'
48 0 0 if warnings::enabled()
65 326 326 if ($message->can('url'))
69 4 0 if $event eq 'pre_freeze' or $event eq 'post_freeze'
70 0 0 if warnings::enabled()
80 0 326 unless ($url->$Mojo::UserAgent::Mockable::Serializer::_isa('Mojo::URL'))
85 1508 774 if defined $url->$attr
87 0 326 if (%{$url->base;})
98 0 30 if (ref $slush ne 'ARRAY')
125 0 435 unless (defined $slush->{$key})
133 0 145 unless ($obj->$Mojo::UserAgent::Mockable::Serializer::_isa('Mojo::Transaction'))
155 0 145 if ($slush->{'events'})
166 0 580 unless ($slush->{$key})
173 145 145 if ($slush->{'url'} and $obj->can('url'))
176 0 290 unless ($obj->can('parse'))
181 0 290 unless ($obj->can('emit'))
184 0 290 if ($slush->{'events'})
196 0 145 unless ref $slush
203 0 145 if ($slush->{'base'})