LCOV - differential code coverage report
Current view: top level - libs/compute_api/src - requests.rs (source / functions) Coverage Total Hit UBC CBC
Current: cd44433dd675caa99df17a61b18949c8387e2242.info Lines: 100.0 % 1 1 1
Current Date: 2024-01-09 02:06:09 Functions: 26.7 % 15 4 11 4
Baseline: 66c52a629a0f4a503e193045e0df4c77139e344b.info
Baseline Date: 2024-01-08 15:34:46

           TLA  Line data    Source code
       1                 : //! Structs representing the JSON formats used in the compute_ctl's HTTP API.
       2                 : 
       3                 : use crate::spec::ComputeSpec;
       4                 : use serde::Deserialize;
       5                 : 
       6                 : /// Request of the /configure API
       7                 : ///
       8                 : /// We now pass only `spec` in the configuration request, but later we can
       9                 : /// extend it and something like `restart: bool` or something else. So put
      10                 : /// `spec` into a struct initially to be more flexible in the future.
      11 CBC         651 : #[derive(Deserialize, Debug)]
      12                 : pub struct ConfigurationRequest {
      13                 :     pub spec: ComputeSpec,
      14                 : }
        

Generated by: LCOV version 2.1-beta