Branch Coverage

amqp_tcp_socket.c
Criterion Covered Total %
branch 18 26 69.2


line true false branch
57 3 512 if (-1 == self->sockfd) {
66 74 438 if (flags & AMQP_SF_MORE) {
100 6 506 if (res < 0) {
129 0 757 if (-1 == self->sockfd) {
140 378 379 if (0 > ret) {
158 0 379 } else if (0 == ret) {
168 0 37 if (-1 != self->sockfd) {
172 1 36 if (0 > self->sockfd) {
183 6 36 if (-1 == self->sockfd) {
187 0 36 if (amqp_os_socket_close(self->sockfd)) {
203 37 0 if (self) {
220 0 37 if (!self) {
233 0 0 if (base->klass != &amqp_tcp_socket_class) {