| 19 | } agent_probe_t; |
| 20 | |
| 21 | static 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 | |
| 33 | static bool agent_path_exists(const char *value, const void *context) { |
| 34 | return agent_probe_contains(value, context, false); |
no outgoing calls
no test coverage detected