Branch Coverage

lib/SPVM/Builder/src/spvm_string_buffer.c
Criterion Covered Total %
branch 17 30 56.6


line true false branch
17 522 58844 if (capacity == 0) {
22 590 58776 if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
25 58776 0 else if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
33 590 58776 if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
36 58776 0 else if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
65 4731 5534625 while (new_length + 1 > string_buffer->capacity) {
68 4731 0 if (string_buffer->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
71 0 0 else if (string_buffer->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
80 4731 0 if (string_buffer->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
83 0 0 else if (string_buffer->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
210 28 731295 if (value == INT32_MIN) {
234 22 887 if (value == INT64_MIN) {
250 590 0 if (string_buffer->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
254 0 0 else if (string_buffer->memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
266 0 0 if (found_ptr) {