Branch Coverage

amqp_api.c
Criterion Covered Total %
branch 21 52 40.3


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 37 28 while (body_offset < body.len) {
256 0 37 if (remaining == 0) {
263 9 28 if (remaining >= usable_body_payload_size) {
273 0 37 if (res < 0) {
287 1 0 if (code < 0 || code > UINT16_MAX) {
0 1 if (code < 0 || code > UINT16_MAX) {
307 31 0 if (code < 0 || code > UINT16_MAX) {
0 31 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 0 0 if (timeout) {
387 0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {