Branch Coverage

blib/lib/Playwright.pm
Criterion Covered Total %
branch 15 78 19.2


line true false branch
39 1 0 unless $node_bin and -x $node_bin
48 0 0 unless $server_bin and -x $server_bin
65 0 0 if $output =~ /OK/u
67 0 0 if $output
108 0 1 unless $SKIP_BEGIN
119 2 0 $options{'cleanup'} // !($options{'port'} || $options{'host'}) ? :
129 0 2 $options{'host'} ? :
147 1 1 if ref $spec eq "HASH"
153 1 0 unless ref $spec eq "HASH"
177 0 0 if ref $msg eq "HASH" and $msg->{'_type'} and exists $mapper{$msg->{'_type'}}
192 1 1 unless $obj->{'_type'}
204 0 0 if $navigation
211 0 0 if $navigation
217 0 0 if ref $object->{'timeouts'} eq "ARRAY"
218 0 0 if $timeout
222 0 0 if $result
225 0 0 if $ctr >= $timeout
233 0 1 if $self->{'killed'}
239 0 1 unless $ppid == $self->{'parent'}
242 0 1 unless $self->{'cleanup'}
248 0 1 if $self->{'debug'}
256 1 0 if $self->{'ua'}
263 1 0 unless waitpid($self->{'pid'}, 1) == 0
268 0 0 if $self->{'debug'}
273 0 0 unless waitpid($self->{'pid'}, 1) == 0
305 0 0 $debug ? :
308 0 0 if (_wait_port($port, 1, $debug))
309 0 0 if $debug
325 0 0 if $cdp_uri
326 0 0 if $debug
328 0 0 if $debug
332 0 0 if ($pid)
333 0 0 if $debug
335 0 0 unless Net::EmptyPort::wait_port($port, $timeout)
337 0 0 if $debug
343 0 0 unless ($cleanup)
347 0 0 if POSIX::setsid() < 0
364 0 0 if $debug
372 0 0 if $self->{'debug'}