Branch Coverage

amqp_time.c
Criterion Covered Total %
branch 33 52 63.4


line true false branch
95 0 363 if (-1 == clock_gettime(CLOCK_MONOTONIC, &tp)) {
108 0 461 assert(NULL != time);
110 341 120 if (NULL == timeout) {
115 120 0 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
0 120 if (timeout->tv_sec < 0 || timeout->tv_usec < 0) {
123 0 120 if (0 == now_ns) {
128 120 0 if (now_ns > time->time_point_ns || delta_ns > time->time_point_ns) {
0 120 if (now_ns > time->time_point_ns || delta_ns > time->time_point_ns) {
138 0 1009 assert(NULL != time);
140 975 34 if (0 >= seconds) {
146 0 34 if (0 == now_ns) {
152 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) {
170 314 124 if (UINT64_MAX == time.time_point_ns) {
173 0 124 if (0 == time.time_point_ns) {
178 0 124 if (0 == now_ns) {
182 2 122 if (now_ns >= time.time_point_ns) {
197 0 74 assert(in != NULL);
198 0 74 if (UINT64_MAX == time.time_point_ns) {
202 0 74 if (0 == time.time_point_ns) {
210 0 74 if (0 == now_ns) {
214 0 74 if (now_ns >= time.time_point_ns) {
231 412 11 if (UINT64_MAX == time.time_point_ns) {
236 0 11 if (0 == now_ns) {
240 4 7 if (now_ns > time.time_point_ns) {
247 187 1085 if (l.time_point_ns < r.time_point_ns) {