True when the URL is not presented as a path or an absolute URL. */
| 5876 | |
| 5877 | /* True when the URL is not presented as a path or an absolute URL. */ |
| 5878 | static bool url_not_claimed(CBMFileResult *r, const char *callee, const char *func) { |
| 5879 | const CBMCall *call = find_call_in_func(r, callee, func); |
| 5880 | if (!call) { |
| 5881 | return false; |
| 5882 | } |
| 5883 | const char *u = call->first_string_arg; |
| 5884 | return !u || (u[0] != '/' && strstr(u, "://") == NULL); |
| 5885 | } |
| 5886 | |
| 5887 | /* Issue #706: a Python caller that centralises its endpoint URLs in module |
| 5888 | * constants -- `API_URL = API_BASE_URL + "some/path"` -- lost the URL, so no |
no test coverage detected