Branch Coverage

blib/lib/WebDriver/Tiny.pm
Criterion Covered Total %
branch 20 34 58.8


line true false branch
76 1 1 unless exists $args{'port'}
130 4 4 if (@_ == 2)
143 1 3 if @_ == 2
152 3 2 if (@cookies) { }
184 0 12 ref $self eq 'WebDriver::Tiny::Elements' ? :
198 0 12 if $args{'visible'}
200 12 0 if @ids
206 0 0 unless @ids or exists $args{'dies'} or $args{'dies'}
208 0 12 wantarray ? :
223 4 3 $url =~ m[^https?://]u ? :
238 0 1 if (defined $file)
239 0 0 unless open my $fh, '>', $file
241 0 0 unless close $fh
262 0 1 unless @_
289 1 72 unless ($reply->{'success'})
292 0 1 $value ? :
300 0 1 if $self->[0] and $self->[3]