MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / url_not_claimed

Function url_not_claimed

tests/test_extraction.c:5878–5885  ·  view source on GitHub ↗

True when the URL is not presented as a path or an absolute URL. */

Source from the content-addressed store, hash-verified

5876
5877/* True when the URL is not presented as a path or an absolute URL. */
5878static 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

Callers 1

test_extraction.cFile · 0.85

Calls 1

find_call_in_funcFunction · 0.85

Tested by

no test coverage detected