Skip to content

Commit

Permalink
#[cfg(test)] to tests re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
moshababo committed Nov 28, 2023
1 parent fab519d commit 5488c1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions node/actors/bft/src/leader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
mod replica_commit;
mod replica_prepare;
mod state_machine;

pub(crate) use state_machine::StateMachine;

#[cfg(test)]
mod tests;

#[allow(unused_imports)]
#[cfg(test)]
pub(crate) use replica_commit::Error as ReplicaCommitError;
#[allow(unused_imports)]
#[cfg(test)]
pub(crate) use replica_prepare::Error as ReplicaPrepareError;
pub(crate) use state_machine::StateMachine;
11 changes: 6 additions & 5 deletions node/actors/bft/src/replica/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ mod leader_commit;
mod leader_prepare;
mod new_view;
mod state_machine;
#[cfg(test)]
mod tests;
mod timer;

#[allow(unused_imports)]
pub(crate) use state_machine::StateMachine;

#[cfg(test)]
mod tests;
#[cfg(test)]
pub(crate) use leader_commit::Error as LeaderCommitError;
#[allow(unused_imports)]
#[cfg(test)]
pub(crate) use leader_prepare::Error as LeaderPrepareError;
pub(crate) use state_machine::StateMachine;

0 comments on commit 5488c1a

Please sign in to comment.