Branch Coverage

amqp_api.c
Criterion Covered Total %
branch 3 62 4.8


line true false branch
101 1 0 if (error < (sizeof(base_error_strings) / sizeof(char *))) {
109 0 0 if (error < (sizeof(tcp_error_strings) / sizeof(char *))) {
117 0 0 if (error < (sizeof(ssl_error_strings) / sizeof(char *))) {
141 0 0 if (code > 0) {
184 0 0 if (AMQP_STATUS_TIMER_FAILURE == res) {
186 0 0 } else if (AMQP_STATUS_TIMEOUT == res) {
188 0 0 if (AMQP_STATUS_TIMEOUT == res) {
190 0 0 } else if (AMQP_STATUS_OK != res) {
197 0 0 if (res < 0) {
201 0 0 if (properties == NULL) {
212 0 0 if (body.len > 0) {
218 0 0 if (res < 0) {
223 0 0 while (body_offset < body.len) {
226 0 0 if (remaining == 0) {
233 0 0 if (remaining >= usable_body_payload_size) {
243 0 0 if (res < 0) {
257 0 0 if (code < 0 || code > UINT16_MAX) {
0 0 if (code < 0 || code > UINT16_MAX) {
277 1 0 if (code < 0 || code > UINT16_MAX) {
0 1 if (code < 0 || code > UINT16_MAX) {
337 0 0 if (timeout) {
338 0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
356 0 0 if (timeout) {
357 0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
380 0 0 if (AMQP_STATUS_OK != res) {
384 0 0 } else if (AMQP_FRAME_METHOD != frame.frame_type ||
385 0 0 (AMQP_BASIC_ACK_METHOD != frame.payload.method.id &&
386 0 0 AMQP_BASIC_NACK_METHOD != frame.payload.method.id &&
387 0 0 AMQP_BASIC_REJECT_METHOD != frame.payload.method.id)) {