70.49% (43/61) Uncovered changed code (with context): ================================================================================ src/Server/PrometheusRequestHandler.cpp ================================================================================ --- uncovered block 448-448 --- 446 | protocol.executePromQLQuery(body_buf, params); 447 | } >> 448 | else if (uri.starts_with("/api/v1/format_query")) 449 | { 450 | throw Exception(ErrorCodes::NOT_IMPLEMENTED, "The format_query endpoint is not implemented"); --- uncovered block 464-464 --- 462 | /// TODO: Support limit= optional parameter 463 | >> 464 | protocol.getSeries(body_buf, match, start, end); 465 | } 466 | else if (uri.starts_with("/api/v1/labels")) --- uncovered block 466-466 --- 464 | protocol.getSeries(body_buf, match, start, end); 465 | } >> 466 | else if (uri.starts_with("/api/v1/labels")) 467 | { 468 | String match = params->get("match[]", ""); --- uncovered block 469-470 --- 467 | { 468 | String match = params->get("match[]", ""); >> 469 | String start = params->get("start", ""); >> 470 | String end = params->get("end", ""); 471 | 472 | protocol.getLabels(body_buf, match, start, end); --- uncovered block 472-472 --- 470 | String end = params->get("end", ""); 471 | >> 472 | protocol.getLabels(body_buf, match, start, end); 473 | } 474 | else if (uri.find("/api/v1/label/") != String::npos && uri.ends_with("/values")) --- uncovered block 474-474 --- 472 | protocol.getLabels(body_buf, match, start, end); 473 | } >> 474 | else if (uri.find("/api/v1/label/") != String::npos && uri.ends_with("/values")) 475 | { 476 | // Extract label name from URI: /api/v1/label//values --- uncovered block 482-483 --- 480 | 481 | String match = params->get("match[]", ""); >> 482 | String start = params->get("start", ""); >> 483 | String end = params->get("end", ""); 484 | 485 | protocol.getLabelValues(body_buf, label_name, match, start, end); --- uncovered block 485-485 --- 483 | String end = params->get("end", ""); 484 | >> 485 | protocol.getLabelValues(body_buf, label_name, match, start, end); 486 | } 487 | else --- uncovered block 489-491 --- 487 | else 488 | { >> 489 | LOG_ERROR(log(), "No matching endpoint found for URI: {}, method: {}", uri, request.getMethod()); >> 490 | response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_NOT_FOUND); >> 491 | writeString(R"({"status":"error","errorType":"not_found","error":"API endpoint not found"})", body_buf); 492 | } 493 | } --- uncovered block 518-522 --- 516 | else 517 | { >> 518 | LOG_ERROR( >> 519 | log(), >> 520 | "Late-stream error executing query (response will be truncated to keep wire format valid): {}", >> 521 | e.displayText()); >> 522 | throw; 523 | } 524 | } No lost baseline coverage found. WARNING: Failed to get start time for [Print Uncovered Code] - start time and duration won't be set --- Coverage counts --- Lines : baseline 751,119/893,864 -> current 752,027/893,885 (delta +908 / +21) Functions : baseline 829,831/910,597 -> current 829,885/910,645 (delta +54 / +48) Branches : baseline 243,693/318,592 -> current 244,095/318,600 (delta +402 / +8)