Branch Coverage

amqp_api.c
Criterion Covered Total %
branch 21 52 40.3


line true false branch
129 1 0 if (error < (sizeof(base_error_strings) / sizeof(char *))) {
137 0 0 if (error < (sizeof(tcp_error_strings) / sizeof(char *))) {
145 0 0 if (error < (sizeof(ssl_error_strings) / sizeof(char *))) {
169 0 0 if (code > 0) {
212 0 29 if (AMQP_STATUS_TIMER_FAILURE == res) {
214 2 27 } else if (AMQP_STATUS_TIMEOUT == res) {
216 0 2 if (AMQP_STATUS_TIMEOUT == res) {
218 0 2 } else if (AMQP_STATUS_OK != res) {
225 1 28 if (res < 0) {
229 0 28 if (properties == NULL) {
240 28 0 if (body.len > 0) {
246 0 28 if (res < 0) {
251 37 28 while (body_offset < body.len) {
254 0 37 if (remaining == 0) {
261 9 28 if (remaining >= usable_body_payload_size) {
271 0 37 if (res < 0) {
285 1 0 if (code < 0 || code > UINT16_MAX) {
0 1 if (code < 0 || code > UINT16_MAX) {
305 31 0 if (code < 0 || code > UINT16_MAX) {
0 31 if (code < 0 || code > UINT16_MAX) {
365 0 0 if (timeout) {
366 0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
384 0 0 if (timeout) {
385 0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {