Branch Coverage

blib/lib/Binance/API/Request.pm
Criterion Covered Total %
branch 40 56 71.4


line true false branch
93 0 0 if (keys %data > 0) { }
98 0 0 if ($response->is_success) { }
100 0 0 if ($@)
102 0 0 $response->content ? :
108 0 0 $response->content ? :
118 0 18 unless ($path)
130 10 21 unless defined $query->{$param}
136 0 14 unless defined $body->{$param}
140 6 12 if ($params->{'signed'})
142 6 0 ($query->{'recvWindow'} // $body->{'recvWindow'}) // defined $self->{'recvWindow'} ? :
145 6 12 if $params->{'signed'}
147 0 18 defined $self->{'baseUrl'} ? :
153 3 15 if (keys %$body and keys %$query) { }
12 3 elsif (keys %$query or not keys %$query || keys %$body) { }
3 0 elsif (keys %$body) { }
154 1 2 if (not defined $body->{'recvWindow'} and defined $recvWindow) { }
1 1 elsif (not defined $query->{'recvWindow'} and defined $recvWindow) { }
169 2 1 if defined $timestamp
181 2 1 if $params->{'signed'}
188 2 10 if $recvWindow
195 2 10 if defined $timestamp
197 8 4 if $query_params
202 2 10 if $params->{'signed'}
204 8 4 if $query_params
208 2 1 if $recvWindow
217 2 1 if defined $timestamp
223 2 1 if $params->{'signed'}
228 0 18 if (defined $self->{'apiKey'})