Branch Coverage

blib/lib/WWW/HtmlUnit/Sweet.pm
Criterion Covered Total %
branch 5 36 13.8


line true false branch
64 0 1 if ($parameters{'show_errors'}) { }
69 0 1 if ($parameters{'error_filename'}) { }
0 1 elsif ($parameters{'error_fh'}) { }
0 1 elsif ($parameters{'errors_to_tmpfile'} or not -c '/dev/null') { }
70 0 0 unless open $error_fh, '>>', $parameters{'error_filename'}
81 0 1 unless open $error_fh, '>', '/dev/null'
124 0 0 if $$self{'url'}
147 0 0 if eval { do { &$subref() } } and not $@
183 0 0 if $method eq 'DESTROY'
192 0 0 if ($browser and $browser->can($method)) { }
0 0 elsif ($window and $window->can($method)) { }
0 0 elsif ($page and $page->can($method)) { }
0 0 elsif ($element and $element->can($method)) { }
203 0 0 if (ref $result and $result->can('toArray')) { }
209 0 0 if ($@ and ref($@) =~ /Exception/) { }
0 0 elsif ($@) { }
226 0 0 if ($params{'text'}) { }
0 0 elsif ($params{'value'}) { }