Branch Coverage

third_party/modest/source/myurl/path.c
Criterion Covered Total %
branch 0 84 0.0


line true false branch
28 0 0 if(path)
36 0 0 if(begin_size == 0)
43 0 0 if(path->list == NULL)
53 0 0 for(size_t i = 0; i < path->length; i++) {
54 0 0 if(path->list[i].data) {
64 0 0 if(path == NULL)
67 0 0 if(path->data)
70 0 0 if(destroy_self) {
80 0 0 if(path == NULL)
83 0 0 if(path->list) {
88 0 0 if(destroy_self && path) {
0 0 if(destroy_self && path) {
97 0 0 if(path->length >= path->size) {
102 0 0 if(tmp) {
115 0 0 if(length) {
118 0 0 if(entry->data == NULL)
132 0 0 if(path->length >= path->size) {
137 0 0 if(tmp) {
158 0 0 if(index >= path->size) {
161 0 0 if(tmp) {
171 0 0 if(index > path->length)
174 0 0 if(path->list[ index ].data)
185 0 0 if(path->length == 0)
193 0 0 if(path->length == 0)
203 0 0 if(path->length == 0 || index >= path->length || path->list == NULL)
0 0 if(path->length == 0 || index >= path->length || path->list == NULL)
0 0 if(path->length == 0 || index >= path->length || path->list == NULL)
208 0 0 if((path->length - 1) > index) {
217 0 0 if(path_from->length >= path_to->size) {
222 0 0 if(tmp) {
235 0 0 if(path_to->length > path_from->length)
237 0 0 while(path_to->length > path_from->length) {
240 0 0 if(list_to[path_to->length].data)
247 0 0 for(size_t i = 0; i < path_from->length; i++)
249 0 0 if(list_to[i].data)
251 0 0 if(list_to[i].length < list_from[i].length)
258 0 0 if(list_to[i].data == NULL)
264 0 0 if(list_from[i].length) {
274 0 0 if(path->length == 0)
277 0 0 if(scheme_id == MyURL_SCHEME_ID_FILE) {
278 0 0 if(path->length == 1 && myurl_utils_is_windows_drive_letter(path->list[0].data, 0, path->list[0].length))
0 0 if(path->length == 1 && myurl_utils_is_windows_drive_letter(path->list[0].data, 0, path->list[0].length))