Branch Coverage

src/panda/refcnt.h
Criterion Covered Total %
branch 12 14 85.7


line true false branch
20 30 5 iptr (const iptr& oth) : ptr(oth.ptr) { if (ptr) refcnt_inc(ptr); }
36 54 458 ~iptr () { if (ptr) refcnt_dec(ptr); }
39 27 2 if (pointer) refcnt_inc(pointer);
40 3 26 if (ptr) refcnt_dec(ptr);
131 1168 438 if (_refcnt > 1) --_refcnt;
132 438 0 else delete this;
159 0 24 struct weak_storage : public Refcnt {