pub trait EpochExt {
// Required methods
fn inc_epoch(&mut self);
fn dec_epoch(&mut self);
fn next_epoch(self) -> u64;
fn prev_epoch(self) -> u64;
}
Expand description
There are numerous operations in our system’s unit tests that involve incrementing or decrementing the epoch. These extensions for u64 type are specifically used within the unit tests.