line |
true |
false |
branch |
39
|
8 |
2 |
for (i = 0; i < len; i++) { |
74
|
18 |
0 |
if (s == NULL || s == str) { |
|
0 |
18 |
if (s == NULL || s == str) { |
79
|
18 |
0 |
if (s[1] == '\0' || s[1] != '/' || s[2] == '\0' || s[2] != '/') { |
|
18 |
0 |
if (s[1] == '\0' || s[1] != '/' || s[2] == '\0' || s[2] != '/') { |
|
18 |
0 |
if (s[1] == '\0' || s[1] != '/' || s[2] == '\0' || s[2] != '/') { |
|
0 |
18 |
if (s[1] == '\0' || s[1] != '/' || s[2] == '\0' || s[2] != '/') { |
102
|
37 |
17 |
if (NULL == str) { |
142
|
18 |
0 |
if (NULL == url || NULL == u) { |
|
0 |
18 |
if (NULL == url || NULL == u) { |
155
|
18 |
0 |
if (!is_relative(u)) { |
159
|
0 |
18 |
if (u == NULL) { |
164
|
0 |
18 |
if ('\0' == *u) { |
174
|
6 |
12 |
if (NULL != u) { |
176
|
0 |
6 |
if (u == url->host) { |
185
|
0 |
6 |
if (NULL == u) { |
194
|
0 |
18 |
if ('\0' == *url->host) { |
200
|
7 |
11 |
if (NULL != u && (NULL == url->path || u < url->path)) { |
|
2 |
5 |
if (NULL != u && (NULL == url->path || u < url->path)) { |
|
2 |
0 |
if (NULL != u && (NULL == url->path || u < url->path)) { |
202
|
0 |
7 |
if ('\0' == *u) { |
206
|
2 |
5 |
if (url->path) { |
214
|
0 |
18 |
if ('\0' == *url->host) { |
241
|
0 |
0 |
if (NULL == path || '\0' == *path) { |
|
0 |
0 |
if (NULL == path || '\0' == *path) { |
247
|
0 |
0 |
while (*path == '/') path++; |
249
|
0 |
0 |
if ('\0' == *path) { |
256
|
0 |
0 |
if (NULL == path) { |
261
|
0 |
0 |
} while (i < max_parts); |
271
|
0 |
0 |
if (NULL == query || '\0' == *query) { |
|
0 |
0 |
if (NULL == query || '\0' == *query) { |
276
|
0 |
0 |
while (i < max_params && NULL != (query = strchr(query, delimiter))) { |
|
0 |
0 |
while (i < max_params && NULL != (query = strchr(query, delimiter))) { |
282
|
0 |
0 |
if (i > 0) { |
283
|
0 |
0 |
if ((params[i - 1].val = strchr(params[i - 1].key, '=')) != NULL) { |
291
|
0 |
0 |
if ((params[i - 1].val = strchr(params[i - 1].key, '=')) != NULL) { |