Branch Coverage

libstemmer_c/runtime/api.c
Criterion Covered Total %
branch 9 28 32.1


line true false branch
8 2 0 if (z == NULL) return NULL;
10 2 0 if (z->p == NULL) goto error;
11 0 2 if (S_size)
15 0 0 if (z->S == NULL) goto error;
17 0 0 for (i = 0; i < S_size; i++)
20 0 0 if (z->S[i] == NULL) goto error;
24 2 0 if (I_size)
27 2 0 if (z->I == NULL) goto error;
30 0 2 if (B_size)
33 0 0 if (z->B == NULL) goto error;
44 2 0 if (z == NULL) return;
45 0 2 if (S_size)
48 0 0 for (i = 0; i < S_size; i++)
56 2 0 if (z->p) lose_s(z->p);