Branch Coverage

third_party/modest/source/myurl/url.c
Criterion Covered Total %
branch 0 146 0.0


line true false branch
46 0 0 if(url == NULL)
49 0 0 if(self_destroy) {
63 0 0 if(entry == NULL)
68 0 0 if(myurl_path_init(url, &entry->path, 56) != MyURL_STATUS_OK) {
81 0 0 if(url_entry->username)
84 0 0 if(url_entry->password)
87 0 0 if(url_entry->query)
90 0 0 if(url_entry->fragment)
104 0 0 if(url_entry == NULL)
109 0 0 if(self_destroy) {
123 0 0 if(entry == NULL) {
124 0 0 if(status)
132 0 0 if(status)
135 0 0 if(entry->status)
145 0 0 if(callback_malloc)
150 0 0 if(callback_realloc)
155 0 0 if(callback_free)
160 0 0 if(ctx)
177 0 0 if(obj_ctx->error)
180 0 0 if((obj_ctx->length + len + 1) >= obj_ctx->size) {
186 0 0 if(tmp) {
202 0 0 if(length)
205 0 0 if(url_entry->url_ref == NULL)
215 0 0 if(ctx.data == NULL)
220 0 0 if(ctx.error) {
221 0 0 if(ctx.data)
227 0 0 if(length)
263 0 0 if(length)
292 0 0 if(length)
300 0 0 if(length)
324 0 0 if(url_entry->host.type != MyURL_HOST_TYPE_DOMAIN) {
325 0 0 if(length)
331 0 0 if(length)
339 0 0 if(url_entry->host.type != MyURL_HOST_TYPE_OPAQUE) {
340 0 0 if(length)
346 0 0 if(length)
354 0 0 if(url_entry->host.type != MyURL_HOST_TYPE_IPv4)
362 0 0 if(url_entry->host.type != MyURL_HOST_TYPE_IPv6)
397 0 0 if(url_entry->path.length < index) {
398 0 0 if(length)
404 0 0 if(length)
413 0 0 if(length)
422 0 0 if(length)
434 0 0 if(url_entry->url_ref == NULL)
439 0 0 if(myurl_utils_data_copy_set(url, name, length, &url_entry->scheme.name, &url_entry->scheme.length))
462 0 0 if(url_entry->url_ref)
469 0 0 if(url_entry->url_ref == NULL)
474 0 0 if(myurl_utils_data_copy_set(url, username, length, &url_entry->username, &url_entry->username_length))
482 0 0 if(url_entry->url_ref == NULL)
487 0 0 if(myurl_utils_data_copy_set(url, password, length, &url_entry->password, &url_entry->password_length))
496 0 0 if(url_entry->url_ref == NULL)
504 0 0 if(status)
523 0 0 if(url_entry->url_ref == NULL || path == NULL)
0 0 if(url_entry->url_ref == NULL || path == NULL)
529 0 0 if(new_entry) {
540 0 0 if(url_entry->url_ref == NULL || entry == NULL)
0 0 if(url_entry->url_ref == NULL || entry == NULL)
546 0 0 if(buffer == NULL)
549 0 0 if(myurl_path_push(url_entry->url_ref, &url_entry->path, buffer, buffer_length) == NULL)
562 0 0 if(url_entry->url_ref == NULL || entry == NULL)
0 0 if(url_entry->url_ref == NULL || entry == NULL)
568 0 0 if(buffer == NULL)
571 0 0 if(myurl_path_push_to_index(url_entry->url_ref, &url_entry->path, index, buffer, buffer_length) == NULL)
579 0 0 if(url_entry->url_ref == NULL)
587 0 0 if(url_entry->url_ref == NULL)
596 0 0 if(url_entry->url_ref == NULL)
604 0 0 if(buffer == NULL)
607 0 0 if(url_entry->query)
619 0 0 if(url_entry->url_ref == NULL)
627 0 0 if(buffer == NULL)
630 0 0 if(url_entry->fragment)
642 0 0 if(url_entry->url_ref == NULL)
645 0 0 if(string)