LCOV - code coverage report
Current view: top level - compute_tools/src/http/routes - info.rs (source / functions) Coverage Total Hit
Test: f2bfe5dc5ab550768e936d6bc7b94d9b2e2d4cc9.info Lines: 0.0 % 4 0
Test Date: 2025-01-27 20:39:28 Functions: 0.0 % 2 0

            Line data    Source code
       1              : use axum::response::Response;
       2              : use compute_api::responses::InfoResponse;
       3              : use http::StatusCode;
       4              : 
       5              : use crate::http::JsonResponse;
       6              : 
       7              : /// Get information about the physical characteristics about the compute.
       8            0 : pub(in crate::http) async fn get_info() -> Response {
       9            0 :     let num_cpus = num_cpus::get_physical();
      10            0 :     JsonResponse::success(StatusCode::OK, &InfoResponse { num_cpus })
      11            0 : }
        

Generated by: LCOV version 2.1-beta