Branch Coverage

third_party/modest/source/myurl/parser_end.c
Criterion Covered Total %
branch 0 116 0.0


line true false branch
29 0 0 myurl_parser_copy_attr(url, url_base, url_entry, password) != MyURL_STATUS_OK ||
30 0 0 myurl_parser_copy_attr(url, url_base, url_entry, query) != MyURL_STATUS_OK ||
31 0 0 myurl_host_copy(url, &url_base->host, &url_entry->host) != MyURL_STATUS_OK ||
46 0 0 if((url_entry->flags & MyURL_FLAGS_AT) && (data_length - url->begin) == 0) {
0 0 if((url_entry->flags & MyURL_FLAGS_AT) && (data_length - url->begin) == 0) {
63 0 0 if((url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL) && (data_length - url->begin) == 0) {
0 0 if((url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL) && (data_length - url->begin) == 0) {
70 0 0 if(url->state_override && (data_length - url->begin) == 0 &&
0 0 if(url->state_override && (data_length - url->begin) == 0 &&
0 0 if(url->state_override && (data_length - url->begin) == 0 &&
71 0 0 (myurl_parser_is_includes_credentials(url_entry) || url_entry->port_is_set))
0 0 (myurl_parser_is_includes_credentials(url_entry) || url_entry->port_is_set))
78 0 0 if(myurl_host_parser(url, &url_entry->host, &data[url->begin], (data_length - url->begin),
86 0 0 if(url->state_override)
99 0 0 if((data_length - url->begin))
105 0 0 while(len < data_length)
107 0 0 if(port > 65535) {
117 0 0 if(url_entry->scheme.port != port) {
127 0 0 if(url->state_override)
139 0 0 myurl_path_copy(url, &url_base->path, &url_entry->path) != MyURL_STATUS_OK ||
152 0 0 if(url->state_override == NULL && myurl_utils_is_windows_drive_letter(data, url->begin, data_size)) {
0 0 if(url->state_override == NULL && myurl_utils_is_windows_drive_letter(data, url->begin, data_size)) {
158 0 0 if((data_length <= url->begin)) {
163 0 0 if(url->state_override)
172 0 0 if(myurl_host_parser(url, &url_entry->host, &data[url->begin], (data_length - url->begin), (url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL))) {
178 0 0 if(url_entry->host.type == MyURL_HOST_TYPE_DOMAIN &&
0 0 if(url_entry->host.type == MyURL_HOST_TYPE_DOMAIN &&
179 0 0 url_entry->host.value.domain.length == 9 &&
186 0 0 if(url->state_override)
209 0 0 if(myurl_utils_is_double_dot_path_segment(&data[ url->begin ], (data_length - url->begin)))
213 0 0 if(data_length >= data_size || (data[data_length] != '/' &&
0 0 if(data_length >= data_size || (data[data_length] != '/' &&
0 0 if(data_length >= data_size || (data[data_length] != '/' &&
214 0 0 (url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL && data[data_length] == '\\') == 0))
0 0 (url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL && data[data_length] == '\\') == 0))
216 0 0 if(myurl_path_push(url, &url_entry->path, NULL, 0) == NULL) {
224 0 0 else if(myurl_utils_is_single_dot_path_segment(&data[ url->begin ], (data_length - url->begin)))
226 0 0 if(data_length >= data_size || (data[data_length] != '/' &&
0 0 if(data_length >= data_size || (data[data_length] != '/' &&
0 0 if(data_length >= data_size || (data[data_length] != '/' &&
227 0 0 (url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL && data[data_length] == '\\') == 0))
0 0 (url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL && data[data_length] == '\\') == 0))
229 0 0 if(myurl_path_push(url, &url_entry->path, NULL, 0) == NULL) {
240 0 0 if(url_entry->scheme.sid == MyURL_SCHEME_ID_FILE && url_entry->path.length == 0 &&
258 0 0 if(buffer == NULL) {
263 0 0 if(myurl_path_push(url, &url_entry->path, buffer, buffer_length) == NULL) {
269 0 0 if(second_replace && buffer_length > 1) {
0 0 if(second_replace && buffer_length > 1) {
277 0 0 if(data_length < data_size) {
279 0 0 if(data[data_length] == '?') {
284 0 0 if(data[data_length] == '#') {
295 0 0 if(url->begin < data_length) {
300 0 0 if(buffer == NULL) {
305 0 0 if(myurl_path_push(url, &url_entry->path, buffer, buffer_length) == NULL) {
317 0 0 if((url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL) == 0 ||
0 0 if((url_entry->scheme.type & MyURL_SCHEME_TYPE_SPECIAL) == 0 ||
318 0 0 url_entry->scheme.sid == MyURL_SCHEME_ID_WS ||
329 0 0 if(buffer == NULL) {