amqp_tcp_socket.c | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 26 | 69.2 |
line | true | false | branch |
---|---|---|---|
57 | 3 | 502 | if (-1 == self->sockfd) { |
66 | 58 | 444 | if (flags & AMQP_SF_MORE) { |
100 | 2 | 500 | if (res < 0) { |
129 | 0 | 763 | if (-1 == self->sockfd) { |
140 | 382 | 381 | if (0 > ret) { |
158 | 0 | 381 | } else if (0 == ret) { |
168 | 0 | 38 | if (-1 != self->sockfd) { |
172 | 1 | 37 | if (0 > self->sockfd) { |
183 | 7 | 36 | if (-1 == self->sockfd) { |
187 | 0 | 36 | if (amqp_os_socket_close(self->sockfd)) { |
203 | 37 | 0 | if (self) { |
220 | 0 | 38 | if (!self) { |
233 | 0 | 0 | if (base->klass != &amqp_tcp_socket_class) { |