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

Function agent_probe_contains

tests/test_agent_clients.c:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19} agent_probe_t;
20
21static bool agent_probe_contains(const char *value, const void *context, bool commands) {
22 const agent_probe_t *probe = (const agent_probe_t *)context;
23 const char *const *values = commands ? probe->commands : probe->paths;
24 size_t count = commands ? probe->command_count : probe->path_count;
25 for (size_t i = 0U; i < count; i++) {
26 if (strcmp(values[i], value) == 0) {
27 return true;
28 }
29 }
30 return false;
31}
32
33static bool agent_path_exists(const char *value, const void *context) {
34 return agent_probe_contains(value, context, false);

Callers 2

agent_path_existsFunction · 0.85
agent_command_existsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected