Branch Coverage

amqp_tcp_socket.c
Criterion Covered Total %
branch 18 26 69.2


line true false branch
57 3 514 if (-1 == self->sockfd) {
66 76 438 if (flags & AMQP_SF_MORE) {
100 7 507 if (res < 0) {
129 0 753 if (-1 == self->sockfd) {
140 377 376 if (0 > ret) {
158 0 376 } else if (0 == ret) {
168 0 37 if (-1 != self->sockfd) {
172 1 36 if (0 > self->sockfd) {
183 6 35 if (-1 == self->sockfd) {
187 0 35 if (amqp_os_socket_close(self->sockfd)) {
203 36 0 if (self) {
220 0 37 if (!self) {
233 0 0 if (base->klass != &amqp_tcp_socket_class) {