| /usr/local/lib/perl5/site_perl/5.26.1/x86_64-linux/CPP/panda/lib.x/i/panda/refcnt.h | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 10 | 14 | 71.4 |
| line | true | false | branch |
|---|---|---|---|
| 19 | 6227 | 0 | iptr (T* pointer) : ptr(pointer) { if (ptr) refcnt_inc(ptr); } |
| 20 | 39518 | 0 | iptr (const iptr& oth) : ptr(oth.ptr) { if (ptr) refcnt_inc(ptr); } |
| 36 | 45879 | 2564 | ~iptr () { if (ptr) refcnt_dec(ptr); } |
| 39 | 213 | 0 | if (pointer) refcnt_inc(pointer); |
| 40 | 79 | 134 | if (ptr) refcnt_dec(ptr); |
| 131 | 45912 | 1302 | if (_refcnt > 1) --_refcnt; |
| 132 | 1302 | 0 | else delete this; |