Branch Coverage

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


line true false branch
35 0 442 unless ($transaction->$Mojo::UserAgent::Mockable::Serializer::_isa("Mojo::Transaction"))
46 441 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 442 442 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 442 unless ($url->$Mojo::UserAgent::Mockable::Serializer::_isa("Mojo::URL"))
85 1972 1122 if defined $url->$attr
87 0 442 if (%{$url->base;})
98 0 34 if (ref $slush ne "ARRAY")
125 0 651 unless (defined $slush->{$key})
133 0 217 unless ($obj->$Mojo::UserAgent::Mockable::Serializer::_isa("Mojo::Transaction"))
155 0 217 if ($slush->{'events'})
166 0 868 unless ($slush->{$key})
173 217 217 if ($slush->{'url'} and $obj->can("url"))
176 0 434 unless ($obj->can("parse"))
181 0 434 unless ($obj->can("emit"))
184 0 434 if ($slush->{'events'})
196 0 217 unless ref $slush
203 0 217 if ($slush->{'base'})