Branch Coverage

lib/Test/WWW/Selenium.pm
Criterion Covered Total %
branch 35 44 79.5


line true false branch
43 0 11 if $name eq 'DESTROY'
47 8 3 if ($name =~ /(\w+)_(is|isnt|like|unlike)$/i) { }
2 1 elsif ($name =~ /(\w+?)_?ok$/i) { }
53 4 4 if ($self->no_locator($1)) { }
56 0 11 if $$self{'verbose'}
58 1 10 if $$self{'default_names'} and not defined $name
62 0 11 if (not $rc and $self->error_callback)
71 0 24 if $$self{'verbose'}
73 0 24 if $$self{'default_names'} and not defined $name
77 4 20 if (not $rc and $self->error_callback)
90 4 2 if ($$self{'default_names'} and not defined $name)
92 3 1 if defined $arg1
93 3 1 if defined $arg2
95 0 6 if $$self{'verbose'}
101 1 5 if $@ and $@ =~ /Can't locate object method/
102 1 4 if $@
104 0 5 if (not $rc and $self->error_callback)
112 10 1 if ($sub) { }
121 0 1 if exists &$sub
131 2 13 defined $opts{'default_names'} ? :
133 1 14 defined $opts{'error_callback'} ? :
144 0 22 if (defined $cb)