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
| 695 | * only observes whether the opaque fake server is present. */ |
| 696 | // cppcheck-suppress constParameterCallback |
| 697 | static 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. */ |
nothing calls this directly
no outgoing calls
no test coverage detected