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

Function host_http_test_server_stop

src/daemon/host.c:697–701  ·  view source on GitHub ↗

WHY: host_http_ops_t is also implemented by production callbacks that mutate * the server; this test double must retain that callback ABI even though it * only observes whether the opaque fake server is present. */ cppcheck-suppress constParameterCallback

Source from the content-addressed store, hash-verified

695 * only observes whether the opaque fake server is present. */
696// cppcheck-suppress constParameterCallback
697static void host_http_test_server_stop(void *opaque, cbm_http_server_t *server) {
698 if (server) {
699 ((host_http_reconcile_test_context_t *)opaque)->server_stops++;
700 }
701}
702
703/* WHY: See host_http_test_server_stop; changing only this implementation to a
704 * pointer-to-const parameter would make it incompatible with host_http_ops_t. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected