Branch Coverage

blib/lib/Mojo/Transaction/HTTP/Role/Mechanize.pm
Criterion Covered Total %
branch 13 14 92.8


line true false branch
12 2 12 if @_ and ref $_[-1] eq 'HASH'
13 8 6 if @_ % 2
16 1 13 if $self->error
19 2 11 unless defined(my $form = $self->res->dom->find('form')->grep(sub { $_->at($selector || ''); } )->first)
21 1 10 unless Role::Tiny::does_role($form, 'Mojo::DOM::Role::Form')
25 1 10 unless my($method, $target, $type) = $form->target($selector)
28 10 0 unless $target->is_abs