Branch Coverage

blib/lib/Binance/API/Request.pm
Criterion Covered Total %
branch 39 54 72.2


line true false branch
92 0 0 if (keys %data > 0) { }
97 0 0 if ($response->is_success) { }
99 0 0 if ($@)
101 0 0 $response->content ? :
107 0 0 $response->content ? :
117 0 18 unless ($path)
129 10 21 unless defined $query->{$param}
135 0 14 unless defined $body->{$param}
139 6 12 if ($params->{'signed'})
141 6 0 ($query->{'recvWindow'} // $body->{'recvWindow'}) // defined $self->{'recvWindow'} ? :
144 6 12 if $params->{'signed'}
151 3 15 if (keys %$body and keys %$query) { }
12 3 elsif (keys %$query or not keys %$query || keys %$body) { }
3 0 elsif (keys %$body) { }
152 1 2 if (not defined $body->{'recvWindow'} and defined $recvWindow) { }
1 1 elsif (not defined $query->{'recvWindow'} and defined $recvWindow) { }
167 2 1 if defined $timestamp
179 2 1 if $params->{'signed'}
186 2 10 if $recvWindow
193 2 10 if defined $timestamp
195 8 4 if $query_params
200 2 10 if $params->{'signed'}
202 8 4 if $query_params
206 2 1 if $recvWindow
215 2 1 if defined $timestamp
221 2 1 if $params->{'signed'}
226 0 18 if (defined $self->{'apiKey'})