Branch Coverage

pl_sandbox.c
Criterion Covered Total %
branch 26 32 81.2


line true false branch
69 0 54863194 if (size == 0) {
73 8729 54854465 if (duk->max_allocated_bytes > 0 &&
74 15 8714 duk->total_allocated_bytes + size > duk->max_allocated_bytes) {
80 0 54863179 if (!hdr) {
97 4012643 8064538 if (ptr) {
101 4 4012639 if (size == 0) {
107 34 4012605 if (duk->max_allocated_bytes > 0 &&
108 0 34 duk->total_allocated_bytes - old_size + size > duk->max_allocated_bytes) {
114 0 4012639 if (!t) {
124 6062166 2002372 } else if (size == 0) {
127 6 2002366 if (duk->max_allocated_bytes > 0 &&
128 0 6 duk->total_allocated_bytes + size > duk->max_allocated_bytes) {
134 0 2002372 if (!hdr) {
150 20223618 56865547 if (!ptr) {
163 2002360 5 if (duk->max_timeout_us <= 0) {
168 4 1 if (elapsed_us <= duk->max_timeout_us) {