LCOV - code coverage report
Current view: top level - storage_controller/src - lib.rs (source / functions) Coverage Total Hit
Test: 4be46b1c0003aa3bbac9ade362c676b419df4c20.info Lines: 0.0 % 19 0
Test Date: 2025-07-22 17:50:06 Functions: 0.0 % 6 0

            Line data    Source code
       1              : use serde::Serialize;
       2              : use utils::seqwait::MonotonicCounter;
       3              : 
       4              : extern crate hyper0 as hyper;
       5              : 
       6              : mod auth;
       7              : mod background_node_operations;
       8              : mod compute_hook;
       9              : pub mod hadron_utils;
      10              : mod heartbeater;
      11              : pub mod http;
      12              : mod id_lock_map;
      13              : mod leadership;
      14              : pub mod metrics;
      15              : mod node;
      16              : mod operation_utils;
      17              : mod pageserver_client;
      18              : mod peer_client;
      19              : pub mod persistence;
      20              : mod reconciler;
      21              : mod safekeeper;
      22              : mod safekeeper_client;
      23              : mod scheduler;
      24              : mod schema;
      25              : pub mod service;
      26              : mod tenant_shard;
      27              : mod timeline_import;
      28              : 
      29              : #[derive(Ord, PartialOrd, Eq, PartialEq, Copy, Clone, Serialize)]
      30              : struct Sequence(u64);
      31              : 
      32              : impl Sequence {
      33            0 :     fn initial() -> Self {
      34            0 :         Self(0)
      35            0 :     }
      36              : }
      37              : 
      38              : impl std::fmt::Display for Sequence {
      39            0 :     fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
      40            0 :         write!(f, "{}", self.0)
      41            0 :     }
      42              : }
      43              : 
      44              : impl std::fmt::Debug for Sequence {
      45            0 :     fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
      46            0 :         write!(f, "{}", self.0)
      47            0 :     }
      48              : }
      49              : 
      50              : impl MonotonicCounter<Sequence> for Sequence {
      51            0 :     fn cnt_advance(&mut self, v: Sequence) {
      52            0 :         assert!(*self <= v);
      53            0 :         *self = v;
      54            0 :     }
      55            0 :     fn cnt_value(&self) -> Sequence {
      56            0 :         *self
      57            0 :     }
      58              : }
      59              : 
      60              : impl Sequence {
      61            0 :     fn next(&self) -> Sequence {
      62            0 :         Sequence(self.0 + 1)
      63            0 :     }
      64              : }
        

Generated by: LCOV version 2.1-beta