Branch Coverage

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


line true false branch
17 515 59664 if (capacity == 0) {
22 583 59596 if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
25 59596 0 else if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
33 583 59596 if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_TMP) {
36 59596 0 else if (memory_block_type == SPVM_ALLOCATOR_C_ALLOC_TYPE_PERMANENT) {
65 4685 5408029 while (new_length + 1 > string_buffer->capacity) {
68 4685 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 4685 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 715489 if (value == INT32_MIN) {
234 22 870 if (value == INT64_MIN) {
250 583 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) {