Branch Coverage

blib/lib/Mojo/UserAgent/Mockable.pm
Criterion Covered Total %
branch 32 46 69.5


line true false branch
76 0 36 if ($self->mode eq 'lwp-ua-mockable') { }
0 36 elsif ($self->mode ne 'record' and $self->mode ne 'playback' and $self->mode ne 'passthrough') { }
78 0 0 if ($self->file)
91 19 17 if ($self->mode eq 'playback')
95 0 36 if ($self->_mode ne 'passthrough' and not $self->file)
99 30 6 if ($self->_mode ne 'passthrough')
102 0 30 unless ($self->can($mode_init))
113 175 19 unless @_
115 19 0 if ($self->mode eq 'playback') { }
125 65 0 if ($self->_mode eq 'record') { }
132 0 0 if warnings::enabled()
138 49 124 if ($cb)
147 0 19 unless (-e $self->file)
161 36 78 $self->_non_blocking ? :
166 50 64 if ($self->comparator->compare($this_req, $recorded_req)) { }
177 28 36 if ($self->unrecognized eq 'exception') { }
18 18 elsif ($self->unrecognized eq 'null') { }
18 0 elsif ($self->unrecognized eq 'fallback') { }
205 105 11 unless my $request_normalizer = $self->request_normalizer
206 0 11 if ref $request_normalizer ne 'CODE'
223 2 55 if ($tx->req->proxy)
226 1 1 if $tx->req->method eq 'CONNECT'
230 0 1 if $tx->connection