Branch Coverage

blib/lib/Selenium/Remote/Mock/RemoteConnection.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
61 0 16 if $self->replay and $self->record
63 0 16 if $self->replay and not $self->replay_file
65 0 16 if not $self->replay and $self->replay_file
68 8 8 if ($self->replay)
80 0 8 unless -f $file
81 0 8 unless open my $fh, "<", $file
97 0 0 unless open my $fh, ">", $file
120 299 0 if ($params)
125 77 222 if $self->debug
127 0 299 if ($self->record)
133 201 98 if ($self->replay)
137 200 1 if (scalar @$arr_of_resps) { }
151 88 10 if (defined $spec->{$cmd}) { }
154 59 29 if (ref $mock_return eq 'HASH') { }
162 59 29 if ref $ret eq "HASH"