Skip to content

Commit

Permalink
Standardize core tests separator comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Oct 21, 2023
1 parent e749d9a commit 5cd7e0d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nautilus_core/network/src/ratelimiter/clock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ impl Clock for MonotonicClock {
}
}

////////////////////////////////////////////////////////////////////////////////
// Tests
////////////////////////////////////////////////////////////////////////////////
#[cfg(test)]
mod test {
use std::{iter::repeat, sync::Arc, thread, time::Duration};
Expand Down
3 changes: 3 additions & 0 deletions nautilus_core/network/src/ratelimiter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ where
}
}

////////////////////////////////////////////////////////////////////////////////
// Tests
////////////////////////////////////////////////////////////////////////////////
#[cfg(test)]
mod tests {
use std::{num::NonZeroU32, time::Duration};
Expand Down
3 changes: 3 additions & 0 deletions nautilus_core/network/src/ratelimiter/nanos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ impl Add<Duration> for Nanos {
}
}

////////////////////////////////////////////////////////////////////////////////
// Tests
////////////////////////////////////////////////////////////////////////////////
#[cfg(all(feature = "std", test))]
mod test {
use std::time::Duration;
Expand Down
3 changes: 3 additions & 0 deletions nautilus_core/network/src/ratelimiter/quota.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ impl Quota {
}
}

////////////////////////////////////////////////////////////////////////////////
// Tests
////////////////////////////////////////////////////////////////////////////////
// #[cfg(test)]
// mod test {
// use nonzero_ext::nonzero;
Expand Down
3 changes: 3 additions & 0 deletions nautilus_core/network/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ impl SocketClient {
}
}

////////////////////////////////////////////////////////////////////////////////
// Tests
////////////////////////////////////////////////////////////////////////////////
#[cfg(test)]
mod tests {
use pyo3::{prelude::*, prepare_freethreaded_python};
Expand Down

0 comments on commit 5cd7e0d

Please sign in to comment.