| 837 | } |
| 838 | |
| 839 | static int ui_adr_get_request(th_server_t *ts, const char *project, char *resp, size_t respsz) { |
| 840 | char req[512]; |
| 841 | int req_len = snprintf(req, sizeof(req), "GET /api/adr?project=%s HTTP/1.1\r\n\r\n", project); |
| 842 | if (req_len < 0 || (size_t)req_len >= sizeof(req)) |
| 843 | return 0; |
| 844 | return th_http(cbm_http_server_port(ts->srv), req, resp, respsz); |
| 845 | } |
| 846 | |
| 847 | static int ui_adr_seed(const ui_delete_fixture_t *fx, const char *project, const char *content) { |
| 848 | char db_path[1024]; |
no test coverage detected