Branch Coverage

blib/lib/HTTP/WebTest/Plugin/Click.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
86 9 23 if $prev_test_num < 0
92 0 23 unless defined $response
95 7 16 unless $response->content_type eq 'text/html'
102 4 12 if (defined $click_link) { }
9 3 elsif (defined $click_button) { }
2 1 elsif (defined $form_name) { }
107 3 1 if defined $link
114 8 1 if defined $action
121 2 0 if defined $action
136 15 0 if (defined $token)
138 1 14 if ($$token[0] eq 'base')
161 0 6 unless defined $uri
162 6 0 if ($$token[0] eq 'a')
164 3 3 if ($text =~ /$pattern/i)
172 1 3 unless defined $link
197 2 1 if ($$token[1]{'name'} and $form_name and $$token[1]{'name'} eq $form_name)
202 1 13 unless $pattern
207 5 15 if ($tag eq '/form')
217 2 13 unless $type =~ /^(?:submit|image)$/i
218 5 8 unless grep /$pattern/i, $name, $value, $src
227 1 10 unless defined $uri