Branch Coverage

amqp_api.c
Criterion Covered Total %
branch 25 52 48.0


line true false branch
131 1 0 if (error < (sizeof(base_error_strings) / sizeof(char *))) {
139 0 0 if (error < (sizeof(tcp_error_strings) / sizeof(char *))) {
147 0 0 if (error < (sizeof(ssl_error_strings) / sizeof(char *))) {
171 0 0 if (code > 0) {
214 0 29 if (AMQP_STATUS_TIMER_FAILURE == res) {
216 2 27 } else if (AMQP_STATUS_TIMEOUT == res) {
218 0 2 if (AMQP_STATUS_TIMEOUT == res) {
220 0 2 } else if (AMQP_STATUS_OK != res) {
227 1 28 if (res < 0) {
231 0 28 if (properties == NULL) {
242 28 0 if (body.len > 0) {
248 0 28 if (res < 0) {
253 29 28 while (body_offset < body.len) {
256 0 29 if (remaining == 0) {
263 1 28 if (remaining >= usable_body_payload_size) {
273 0 29 if (res < 0) {
287 1 0 if (code < 0 || code > UINT16_MAX) {
0 1 if (code < 0 || code > UINT16_MAX) {
307 33 0 if (code < 0 || code > UINT16_MAX) {
0 33 if (code < 0 || code > UINT16_MAX) {
367 0 0 if (timeout) {
368 0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
386 4 2 if (timeout) {
387 4 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 4 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {