Condition Coverage

blib/lib/Test/Mojo/Role/Selenium.pm
Criterion Covered Total %
condition 22 60 36.6


and 3 conditions

line !l l&&!r l&&r condition
78 0 0 0 $active && $el
124 0 0 0 $el && $el->is_displayed
134 0 0 0 $el && $el->is_hidden
216 0 0 0 $err and $err->{'message'}
277 4 1 2 $ENV{'TEST_SELENIUM'} and eval { do { $self->driver } }
337 0 0 0 $e && @checks == grep({$e->$_;} @checks)
358 19 0 2 $@ and $args->{'debug'} || 0

or 2 conditions

line l !l condition
12 0 8 $ENV{'MOJO_SELENIUM_DEBUG'} || 0
13 0 8 $ENV{'MOJO_SELENIUM_WAIT_INTERVAL'} || 0.5
14 0 8 $ENV{'MOJO_SELENIUM_WAIT_TIMEOUT'} || 60
100 0 0 $@ || 'unable to click'
240 0 0 $selector ||= 'active element'
277 1 4 $@ || 'TEST_SELENIUM=1 or TEST_SELENIUM=http://...'
331 0 0 $args->{'timeout'} || 60
358 2 0 $args->{'debug'} || 0
360 3 1 $args->{'timeout'} || 60
3 1 $args->{'interval'} || 0.5
426 0 8 $ENV{'MOJO_SELENIUM_DEBUG'} || 0
430 0 0 $req->method || 'get'

or 3 conditions

line l !l&&r !l&&!r condition
279 0 1 0 $ENV{'MOJO_SELENIUM_BASE_URL'} ||= $ENV{'TEST_SELENIUM'}
315 0 0 0 shift() || "waited for element $sel"
357 3 1 21 $err or eval { do { local $_ = $self->driver; $self->$cb($args) } }
368 0 4 0 $args->{'desc'} || "waited for @{[time - $t0];}s"
379 7 0 0 shift() || shift()