LCOV - code coverage report
Current view: top level - storage_controller/src - lib.rs (source / functions) Coverage Total Hit
Test: aca806cab4756d7eb6a304846130f4a73a5d5393.info Lines: 0.0 % 19 0
Test Date: 2025-04-24 20:31:15 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              : mod drain_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 pageserver_client;
      17              : mod peer_client;
      18              : pub mod persistence;
      19              : mod reconciler;
      20              : mod safekeeper;
      21              : mod safekeeper_client;
      22              : mod scheduler;
      23              : mod schema;
      24              : pub mod service;
      25              : mod tenant_shard;
      26              : mod timeline_import;
      27              : 
      28              : #[derive(Ord, PartialOrd, Eq, PartialEq, Copy, Clone, Serialize)]
      29              : struct Sequence(u64);
      30              : 
      31              : impl Sequence {
      32            0 :     fn initial() -> Self {
      33            0 :         Self(0)
      34            0 :     }
      35              : }
      36              : 
      37              : impl std::fmt::Display for Sequence {
      38            0 :     fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
      39            0 :         write!(f, "{}", self.0)
      40            0 :     }
      41              : }
      42              : 
      43              : impl std::fmt::Debug for Sequence {
      44            0 :     fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
      45            0 :         write!(f, "{}", self.0)
      46            0 :     }
      47              : }
      48              : 
      49              : impl MonotonicCounter<Sequence> for Sequence {
      50            0 :     fn cnt_advance(&mut self, v: Sequence) {
      51            0 :         assert!(*self <= v);
      52            0 :         *self = v;
      53            0 :     }
      54            0 :     fn cnt_value(&self) -> Sequence {
      55            0 :         *self
      56            0 :     }
      57              : }
      58              : 
      59              : impl Sequence {
      60            0 :     fn next(&self) -> Sequence {
      61            0 :         Sequence(self.0 + 1)
      62            0 :     }
      63              : }
        

Generated by: LCOV version 2.1-beta