LCOV - code coverage report
Current view: top level - safekeeper/src/http - mod.rs (source / functions) Coverage Total Hit
Test: 09e7485004805bd42b53a0c369170b3228136512.info Lines: 0.0 % 12 0
Test Date: 2024-11-21 18:36:18 Functions: 0.0 % 3 0

            Line data    Source code
       1              : pub mod client;
       2              : pub mod routes;
       3              : pub use routes::make_router;
       4              : 
       5              : pub use safekeeper_api::models;
       6              : 
       7              : use crate::SafeKeeperConf;
       8              : 
       9            0 : pub async fn task_main(
      10            0 :     conf: SafeKeeperConf,
      11            0 :     http_listener: std::net::TcpListener,
      12            0 : ) -> anyhow::Result<()> {
      13            0 :     let router = make_router(conf)
      14            0 :         .build()
      15            0 :         .map_err(|err| anyhow::anyhow!(err))?;
      16            0 :     let service = utils::http::RouterService::new(router).unwrap();
      17            0 :     let server = hyper::Server::from_tcp(http_listener)?;
      18            0 :     server.serve(service).await?;
      19            0 :     Ok(()) // unreachable
      20            0 : }
        

Generated by: LCOV version 2.1-beta