Branch Coverage

third_party/modest/source/mycore/mystring.c
Criterion Covered Total %
branch 28 88 31.8


line true false branch
52 0 170 if(str == NULL)
55 170 0 if(str->data && str->mchar)
170 0 if(str->data && str->mchar)
58 0 170 if(destroy_obj && str) {
0 0 if(destroy_obj && str) {
78 0 0 if(str_raw == NULL)
81 0 0 if(str_raw->data) {
86 0 0 if(destroy_obj && str_raw) {
0 0 if(destroy_obj && str_raw) {
96 0 1401 if(str == NULL)
101 1401 0 if(tmp) {
132 0 0 if(str == NULL)
140 0 0 if(str == NULL)
148 0 0 if(str == NULL)
156 0 0 if(str == NULL)
165 0 0 if(str == NULL)
174 0 0 if(str == NULL)
187 157 21 MyCORE_STRING_REALLOC_IF_NEED(str, (length + 1), 0);
197 32 2 MyCORE_STRING_REALLOC_IF_NEED(str, 2, 1);
204 41 0 MyCORE_STRING_REALLOC_IF_NEED(str, (length + 1), 0);
210 178 41 for(i = 0; i < length; i++) {
227 796 74 while(size) {
247 0 0 MyCORE_STRING_REALLOC_IF_NEED(str, (length + 1), 0);
252 0 0 for (size_t i = 0; i < length; i++)
254 0 0 if(u_buff[i] == 0x00) {
277 0 0 for(size_t i = 0; i < target->length; i++)
279 0 0 if(mycore_utils_whithspace(data[i], ==, ||)) {
0 0 if(mycore_utils_whithspace(data[i], ==, ||)) {
0 0 if(mycore_utils_whithspace(data[i], ==, ||)) {
0 0 if(mycore_utils_whithspace(data[i], ==, ||)) {
0 0 if(mycore_utils_whithspace(data[i], ==, ||)) {
293 45 0 for(i = 0; i < target->length; i++) {
294 45 0 if(mycore_utils_whithspace(data[i], !=, &&))
45 0 if(mycore_utils_whithspace(data[i], !=, &&))
45 0 if(mycore_utils_whithspace(data[i], !=, &&))
45 0 if(mycore_utils_whithspace(data[i], !=, &&))
45 0 if(mycore_utils_whithspace(data[i], !=, &&))
298 0 45 if(i)
311 30 0 for(i = 0; i < target->length; i++) {
312 30 0 if(mycore_utils_whithspace(data[i], !=, &&))
30 0 if(mycore_utils_whithspace(data[i], !=, &&))
30 0 if(mycore_utils_whithspace(data[i], !=, &&))
30 0 if(mycore_utils_whithspace(data[i], !=, &&))
30 0 if(mycore_utils_whithspace(data[i], !=, &&))