Branch Coverage

c/timer.c
Criterion Covered Total %
branch 19 24 79.1


line true false branch
25 0 86 if (!ev->callback)
27 42 44 if (repeat) {
32 0 42 if (!sv_2interval("timer", tm->interval, &interval))
35 0 42 tm->tm.at = interval + (WaHARD(ev)? tm->tm.at : NVtime());
37 1 85 if (!tm->tm.at)
55 44 3 if (nval) {
57 1 43 if (active) pe_watcher_off(ev);
58 41 3 tp->tm.at = SvNV(nval);
59 1 43 if (active) pe_watcher_on(ev, 0);
63 0 47 XPUSHs(sv_2mortal(newSVnv(tp->tm.at)));
70 41 1 if (nval) {
79 0 42 XPUSHs(tp->interval);