Branch Coverage

amqp_time.c
Criterion Covered Total %
branch 36 56 64.2


line true false branch
95 0 359 if (-1 == clock_gettime(CLOCK_MONOTONIC, &tp)) {
108 0 461 assert(NULL != time);
110 341 120 if (NULL == timeout) {
114 2 118 if (0 == timeout->tv_sec && 0 == timeout->tv_usec) {
2 0 if (0 == timeout->tv_sec && 0 == timeout->tv_usec) {
119 118 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 118 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
127 0 118 if (0 == now_ns) {
132 118 0 if (now_ns > time->time_point_ns || delta_ns > time->time_point_ns) {
0 118 if (now_ns > time->time_point_ns || delta_ns > time->time_point_ns) {
142 0 1010 assert(NULL != time);
144 976 34 if (0 >= seconds) {
150 0 34 if (0 == now_ns) {
156 34 0 if (now_ns > time->time_point_ns || delta_ns > time->time_point_ns) {
0 34 if (now_ns > time->time_point_ns || delta_ns > time->time_point_ns) {
180 314 124 if (UINT64_MAX == time.time_point_ns) {
183 2 122 if (0 == time.time_point_ns) {
188 0 122 if (0 == now_ns) {
192 0 122 if (now_ns >= time.time_point_ns) {
207 0 74 assert(in != NULL);
208 0 74 if (UINT64_MAX == time.time_point_ns) {
212 0 74 if (0 == time.time_point_ns) {
220 0 74 if (0 == now_ns) {
224 0 74 if (now_ns >= time.time_point_ns) {
241 415 11 if (UINT64_MAX == time.time_point_ns) {
246 0 11 if (0 == now_ns) {
250 4 7 if (now_ns > time.time_point_ns) {
257 187 1091 if (l.time_point_ns < r.time_point_ns) {